-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import React from "react"; | ||
import Image from "next/image"; | ||
import { Dialog, DialogContent } from "@/components/ui/dialog"; | ||
import { Button } from "@/components/ui/button"; | ||
|
||
import { cn } from "@/lib/utils"; | ||
|
||
type MeetingModalProps = { | ||
isOpen: boolean; | ||
onClose: () => void; | ||
title: string; | ||
className: string; | ||
children?: React.ReactNode; | ||
buttonText?: string; | ||
handleClick?: () => void; | ||
image?: string; | ||
buttonIcon?: string; | ||
}; | ||
|
||
const MeetingModal = ({ | ||
isOpen, | ||
onClose, | ||
title, | ||
className, | ||
children, | ||
buttonText, | ||
handleClick, | ||
image, | ||
buttonIcon, | ||
}: MeetingModalProps) => { | ||
return ( | ||
<Dialog open={isOpen} onOpenChange={onClose}> | ||
<DialogContent className="flex w-full max-w-[520px] flex-col gap-6 border-none bg-dark-1 px-6 py-9 text-white"> | ||
<div className="flex flex-col gap-6"> | ||
{image && ( | ||
<div className="flex justify-center"> | ||
<Image src={image} alt="image" width={72} height={72} /> | ||
</div> | ||
)} | ||
<h1 className={cn("text-3xl font-bold leading-[42px]", className)}>{title}</h1> | ||
{children} | ||
<Button | ||
className="bg-blue-1 focus-visible:ring-0 focus-visible:ring-offset-0" | ||
onClick={handleClick} | ||
> | ||
{buttonIcon && <Image src={buttonIcon} alt="button icon" width={13} height={13} />}{" "} | ||
| ||
{buttonText || "Schedule Meeting"} | ||
</Button> | ||
</div> | ||
</DialogContent> | ||
</Dialog> | ||
); | ||
}; | ||
|
||
export default MeetingModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters