import { Button } from '@/components/ui/button' import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog' import { Input } from '@/components/ui/input' import { RecurrencePicker } from '@/components/recurrence-picker' interface EventDialogProps { open: boolean onOpenChange: (open: boolean) => void editingId: string | null title: string setTitle: (title: string) => void description: string setDescription: (description: string) => void location: string setLocation: (location: string) => void url: string setUrl: (url: string) => void start: string setStart: (start: string) => void end: string setEnd: (end: string) => void allDay: boolean setAllDay: (allDay: boolean) => void recurrenceRule: string | undefined setRecurrenceRule: (rule: string | undefined) => void onSave: () => void onReset: () => void } export const EventDialog = ({ open, onOpenChange, editingId, title, setTitle, description, setDescription, location, setLocation, url, setUrl, start, setStart, end, setEnd, allDay, setAllDay, recurrenceRule, setRecurrenceRule, onSave, onReset }: EventDialogProps) => { const handleOpenChange = (val: boolean) => { if (!val) onReset() onOpenChange(val) } return ( {editingId ? 'Edit Event' : 'Add Event'} setTitle(e.target.value)} />