import AddEntryForm from '@/components/Transactions/AddEntryForm'; import { cn } from '@/lib/utils'; interface InlineFormProps { open: boolean; unit?: string; onClose: () => void; onSuccess?: () => void; className?: string; } export default function InlineForm({ open, unit = 'units', onClose, onSuccess, className, }: InlineFormProps) { if (!open) return null; const handleSuccess = () => { onSuccess?.(); onClose(); }; return (
); }