"use client"; type EntriesDiscardModalProps = { isOpen: boolean; onConfirm: () => void; onCancel: () => void; }; export default function EntriesDiscardModal({ isOpen, onConfirm, onCancel }: EntriesDiscardModalProps) { if (!isOpen) return null; return (
{ if (event.key === "Escape") onCancel(); }} role="dialog" tabIndex={-1} >
Discard changes?

You have unsaved changes. Do you want to discard them?

); }