import { Skeleton } from '@mui/material'; import { ParentSize } from '../..'; import type { SingleBarProps } from './models'; import ResponsiveSingleBar from './ResponsiveSingleBar'; const SingleBar = ({ data, ...props }: SingleBarProps): JSX.Element | null => { if (!data) { return null; } return ( {({ width, height }) => { if (!height || !width) { return ; } return ( ); }} ); }; export default SingleBar;