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 (
Vorschau {onReset && ( )}
{showInstructions && (

Deployment Instructions

  1. JSON Datei wurde heruntergeladen
  2. Inhalt der cv.json kopieren
  3. In src/data/cv.js einfügen
  4. Committen und pushen: git add . && git commit -m "update cv" && git push
  5. GitHub Actions deployt automatisch
)}
); }