import React from 'react'; import { Check } from 'lucide-react'; import { DATA_SECTIONS, DataSection } from '../../lib/types'; interface SectionPickerProps { value: DataSection[]; onChange: (sections: DataSection[]) => void; label?: string; } // Which parts of the own data a restore or import covers; at least one stays selected export const SectionPicker: React.FC = ({ value, onChange, label = 'Bereiche' }) => (
{label}: {DATA_SECTIONS.map((sec) => { const on = value.includes(sec.id); return ( ); })}
);