import { forwardRef, ReactElement, Ref } from 'react' import { ResponsiveWrapper, ResponsiveProps, WithChartRef } from '@nivo/core' import { BoxPlotDatum, BoxPlotSvgProps } from './types' import { BoxPlot } from './BoxPlot' export const ResponsiveBoxPlot = forwardRef( ( { defaultWidth, defaultHeight, onResize, debounceResize, ...props }: ResponsiveProps>, ref: Ref ) => ( {({ width, height }) => ( width={width} height={height} {...props} ref={ref} /> )} ) ) as ( props: WithChartRef>, SVGSVGElement> ) => ReactElement