import { useI18n } from '../i18n/I18nProvider'; // CLEAR takes the photo off the stage, and the work standing on it goes with // it: the look lives in the session, not in the picture. So the button asks // first, and the two ways of keeping something are one tap each — file the // frame in MY PHOTOS so it can be picked up again, or put a JPEG in the user's // hands. Neither is forced: CLEAR WITHOUT SAVING is a plain discard, and // closing the dialog does nothing at all. export function ClearPhotoModal({ onSave, onExport, onDiscard, onClose, }: { onSave: () => void; onExport: () => void; onDiscard: () => void; onClose: () => void; }) { const { t } = useI18n(); return (
e.target === e.currentTarget && onClose()}>

{t('clear.title')}

{t('clear.hint')}

); }