import { CellWidthInput, ExportMenu, NotationToggleGroup, Separator, ToggleBtn, Toolbar, } from '@h5web/lib'; import { FiAnchor } from 'react-icons/fi'; import type { ExportFormat, ExportURL } from '../../../providers/models'; import { useMatrixConfig } from './config'; const EXPORT_FORMATS: ExportFormat[] = ['npy', 'csv']; interface Props { cellWidth: number; isSlice: boolean; getExportURL: ((format: ExportFormat) => ExportURL) | undefined; } function MatrixToolbar(props: Props) { const { cellWidth, isSlice, getExportURL } = props; const { sticky, toggleSticky, customCellWidth, setCustomCellWidth, notation, setNotation, } = useMatrixConfig(); return ( {getExportURL && ( <> ({ format, url: getExportURL(format), }))} /> )} ); } export default MatrixToolbar;