import { useNavigate } from "@remix-run/react"; import { CheckCircle2, ArrowLeft } from "lucide-react"; import { Dialog, DialogContent, DialogOverlay } from "~/components/ui/dialog"; import { Button } from "~/components/ui/button"; import { UserCollection } from "src/api/types"; interface SetSuccessModalProps { isOpen: boolean; onOpenChange: (open: boolean) => void; collection: UserCollection | null; } export const SetSuccessModal = ({ isOpen, onOpenChange, collection, }: SetSuccessModalProps) => { const navigate = useNavigate(); const handleViewSet = () => { if (collection?.id) { navigate(`/profile/sets/${collection.id}`); onOpenChange(false); } }; const handleClose = () => { onOpenChange(false); }; return (

ست با موفقیت ایجاد شد!

ست "{collection?.title}" ایجاد شد و محصول به آن اضافه شد.

); };