import { useState } from 'react'; import { X, Download } from 'lucide-react'; interface Props { onConfirm: (since: number) => void; onClose: () => void; } export default function ExportPickerModal({ onConfirm, onClose }: Props) { const today = new Date().toISOString().slice(0, 10); const [date, setDate] = useState(today); const handleConfirm = () => { const since = new Date(date + 'T00:00:00').getTime(); onConfirm(since); }; return (
{ if (e.target === e.currentTarget) onClose(); }} >

Alben exportieren

Alle Alben exportieren, die seit diesem Datum hinzugekommen sind:

{ setDate(e.target.value); e.target.blur(); }} style={{ width: '100%', padding: '9px 12px', borderRadius: '8px', border: '1px solid var(--border-subtle)', background: 'var(--bg-app)', color: 'var(--text-primary)', fontSize: '14px', boxSizing: 'border-box', outline: 'none', colorScheme: 'dark', }} />
); }