import type { FC } from 'react' import { RetroCheckbox } from './retro' const LAYER_LABELS: Record = { image: 'Image', ocr_diplomatic: 'Transcription', ocr_normalized: 'Normalise', translation_fr: 'Traduction FR', translation_en: 'Traduction EN', summary: 'Resume', scholarly_commentary: 'Comm. savant', public_commentary: 'Comm. public', iconography_detection: 'Iconographie', material_notes: 'Notes mat.', uncertainty: 'Incertitudes', } interface Props { activeLayers: string[] visibleLayers: Set onToggle: (layer: string) => void } const LayerPanel: FC = ({ activeLayers, visibleLayers, onToggle }) => (
Couches
{activeLayers.map((layer) => ( onToggle(layer)} /> ))}
) export default LayerPanel