import { createPortal } from 'react-dom'; import { X, Trash2 } from 'lucide-react'; import { NoteItem } from '@/types'; interface NoteViewModalProps { isOpen: boolean; note: NoteItem | null; onClose: () => void; onEdit: (note: NoteItem) => void; onDelete?: (note: NoteItem) => void; } export function NoteViewModal({ isOpen, note, onClose, onEdit, onDelete }: NoteViewModalProps) { if (!isOpen || !note) return null; const handleDelete = () => { if (window.confirm('정말 삭제하시겠습니까?')) { onDelete?.(note); } }; return createPortal(