"use client"; import { useTranslations } from "next-intl"; import { ContextMenu, ContextMenuItem, ContextMenuSeparator, } from "@/components/ui/context-menu"; import { Plus, CalendarDays, CheckSquare, Clock } from "lucide-react"; interface Position { x: number; y: number; } interface EmptySpaceContextMenuProps { position: Position; isOpen: boolean; onClose: () => void; menuRef: React.RefObject; onNewEvent: () => void; onNewAllDayEvent: () => void; onNewTask?: () => void; onGoToToday: () => void; showAllDayOption?: boolean; } export function EmptySpaceContextMenu({ position, isOpen, onClose, menuRef, onNewEvent, onNewAllDayEvent, onNewTask, onGoToToday, showAllDayOption = true, }: EmptySpaceContextMenuProps) { const t = useTranslations("calendar"); const handle = (fn: () => void) => () => { fn(); onClose(); }; return ( {showAllDayOption && ( )} {onNewTask && ( )} ); }