import AddEntryForm from '@/components/Transactions/AddEntryForm'; import AddMilestoneForm from '@/components/Milestones/AddMilestoneForm'; import UpdatePriceForm from '@/components/Pricing/UpdatePriceForm'; import { cn } from '@/lib/utils'; interface InlineFormProps { type: 'purchase' | 'milestone' | 'price' | null; unit?: string; priceTrackingEnabled?: boolean; onClose: () => void; onPurchaseSuccess?: () => void; onMilestoneSuccess?: () => void; onPriceSuccess?: () => void; className?: string; } export default function InlineForm({ type, unit = 'units', priceTrackingEnabled = false, onClose, onPurchaseSuccess, onMilestoneSuccess, onPriceSuccess, className, }: InlineFormProps) { if (!type) return null; return (