import { ScalarVis } from '@h5web/lib'; import { assertDataset, assertPrintableType, assertScalarShape, } from '@h5web/shared'; import VisBoundary from '../../VisBoundary'; import type { VisContainerProps } from '../../models'; import ValueFetcher from '../ValueFetcher'; import { getFormatter } from './utils'; function ScalarVisContainer(props: VisContainerProps) { const { entity } = props; assertDataset(entity); assertScalarShape(entity); assertPrintableType(entity); const formatter = getFormatter(entity); return ( } /> ); } export default ScalarVisContainer;