import ExperienceForm from './sections/ExperienceForm';
import ExportButton from './components/ExportButton';
import { useCVData } from './hooks/CVContext';

export default function AdminExperience() {
  const { data, updateExperience, exportJSON, importJSON, resetToDefault } = useCVData();
  
  return (
    <div className="space-y-6">
      <ExportButton onExport={exportJSON} onImport={importJSON} onReset={resetToDefault} />
      <ExperienceForm data={data.experience} onUpdate={updateExperience} />
    </div>
  );
}