import { alpha, useTheme } from '@mui/system'; import { omit } from 'ramda'; import { margin } from '../../common'; import Bar from '../Bar'; import type { ZoomPreviewData } from './models'; import useZoomPreview from './useZoomPreview'; const ZoomPreview = (data: ZoomPreviewData): JSX.Element => { const theme = useTheme(); const { graphHeight, xScale, graphWidth, getInterval, graphSvgRef, graphMarginLeft, ...rest } = data; const { zoomBarWidth, zoomBoundaries } = useZoomPreview({ getInterval, graphMarginLeft, graphSvgRef, graphWidth, xScale }); const restData = omit(['enable'], { ...rest }); return ( ); }; export default ZoomPreview;