"use client"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; import type { Position } from "@/types/canvas"; type Props = { position: Position | null; isMac: boolean; videoUploading: boolean; onClose: () => void; onUploadImage: () => void; onUploadVideo: () => void; onPaste: () => void; onZoomIn: () => void; onZoomOut: () => void; onFitAll: () => void; onResetZoom: () => void; }; export function CanvasBlankContextMenu({ position, isMac, videoUploading, onClose, onUploadImage, onUploadVideo, onPaste, onZoomIn, onZoomOut, onFitAll, onResetZoom, }: Props) { const modifier = isMac ? "⌘" : "Ctrl+"; const itemClass = "h-8 cursor-pointer justify-between whitespace-nowrap rounded-[5px] px-0 text-[14px] font-normal focus:bg-[#f5f5f5] dark:focus:bg-white/10"; const shortcut = (label: string) => ( {label} ); return ( { if (!open) onClose(); }} >