import * as Icons from 'lucide-react' import { CardHeader, CardTitle } from '@/components/ui/card' import { Dialog, DialogContent } from '@/components/ui/dialog' export function WizardLayout({ title, onClose, headerSlot, footerSlot, children, }: { title: string onClose: () => void headerSlot?: React.ReactNode footerSlot?: React.ReactNode children: React.ReactNode }) { return ( !open && onClose()}> { e.preventDefault() }} >
{title} {headerSlot ?
{headerSlot}
: null}
{children}
{footerSlot ? (
{footerSlot}
) : null}
) }