"use client"; import { useRouter } from "next/navigation"; import { Dialog, DialogContent, DialogHeader, DialogTitle, } from "@/components/ui/dialog"; import { cn } from "@/lib/utils"; export function ModalBase({ children, title, wrap, full, }: { children: React.ReactNode; title: string; wrap?: boolean; full?: boolean; }) { const router = useRouter(); return ( router.back()}> {title} {children} ); }