-
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
1 parent
7c60965
commit 0b6556b
Showing
1 changed file
with
59 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,59 @@ | ||
"use client"; | ||
|
||
import { | ||
Dialog, | ||
DialogContent, | ||
DialogDescription, | ||
DialogFooter, | ||
DialogHeader, | ||
DialogTitle, | ||
} from "@/components/ui/dialog"; | ||
import { Button } from "@/components/ui/button"; | ||
import TestimonialReview from "../dashboard/testimonial-review"; | ||
import { Copy } from "lucide-react"; | ||
|
||
type CollectingWidgetModalProp = { | ||
isOpen: boolean; | ||
setIsOpen: (value: boolean) => void; | ||
slug: string; | ||
}; | ||
|
||
const CollectingWidgetModal = ({ | ||
isOpen, | ||
setIsOpen, | ||
slug, | ||
}: CollectingWidgetModalProp) => { | ||
return ( | ||
<Dialog open={isOpen} onOpenChange={setIsOpen}> | ||
<DialogContent className="max-w-[65%] h-[90%] overflow-y-scroll"> | ||
<DialogHeader> | ||
<DialogTitle className="text-center text-3xl font-bold"> | ||
Add collecting widget to your own website | ||
</DialogTitle> | ||
<DialogDescription></DialogDescription> | ||
</DialogHeader> | ||
<div className="border-[1px] "> | ||
<TestimonialReview slug={slug} /> | ||
</div> | ||
<DialogFooter className=""> | ||
<div className="flex flex-row items-center gap-x-3 justify-between w-full "> | ||
<Button className="w-[50%]" variant={"secondary"}> | ||
Close | ||
</Button> | ||
<Button | ||
type="submit" | ||
className="flex flex-row w-[50%] rounded items-center gap-x-1" | ||
> | ||
<span> | ||
<Copy size={16} /> | ||
</span> | ||
<span>Copy Code</span> | ||
</Button> | ||
</div> | ||
</DialogFooter> | ||
</DialogContent> | ||
</Dialog> | ||
); | ||
}; | ||
|
||
export default CollectingWidgetModal; |