Skip to content

Commit

Permalink
feat: added components
Browse files Browse the repository at this point in the history
  • Loading branch information
thezeeshann committed Sep 18, 2024
1 parent 7c60965 commit 0b6556b
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions src/components/modals/collecting-widget.tsx
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;

0 comments on commit 0b6556b

Please sign in to comment.