import React from 'react'; import { Icon, SegmentedControl, SegmentedControlOption, useId, } from '@mongodb-js/compass-components'; import type { DocumentView } from '../stores/crud-store'; type ViewSwitcherProps = { activeView: DocumentView; onChange: (value: DocumentView) => void; }; const ViewSwitcher = ({ activeView, onChange }: ViewSwitcherProps) => { const controlId = useId(); return ( onChange(value as DocumentView)} > } /> } /> } /> ); }; export { ViewSwitcher };