14 lines
509 B
JavaScript
14 lines
509 B
JavaScript
import ProjectsForm from './sections/ProjectsForm';
|
|
import ExportButton from './components/ExportButton';
|
|
import { useCVData } from './hooks/CVContext';
|
|
|
|
export default function AdminProjects() {
|
|
const { data, updateProjects, exportJSON, importJSON, resetToDefault } = useCVData();
|
|
|
|
return (
|
|
<div className="space-y-6">
|
|
<ExportButton onExport={exportJSON} onImport={importJSON} onReset={resetToDefault} />
|
|
<ProjectsForm data={data.projects} onUpdate={updateProjects} />
|
|
</div>
|
|
);
|
|
} |