import { Download, Upload, Eye, RotateCcw, FileJson } from 'lucide-react'; import { useRef, useState } from 'react'; export default function ExportButton({ onExport, onImport, onReset }) { const fileInputRef = useRef(null); const [showInstructions, setShowInstructions] = useState(false); const handleImport = (e) => { const file = e.target.files[0]; if (!file) return; const reader = new FileReader(); reader.onload = (event) => { const result = onImport(event.target.result); if (result.success) { alert('Import erfolgreich!'); } else { alert(`Import fehlgeschlagen: ${result.error}`); } }; reader.readAsText(file); }; return (
cv.json kopierensrc/data/cv.js einfügengit add . && git commit -m "update cv" && git push