mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 08:47:40 -05:00
22 lines
431 B
JavaScript
22 lines
431 B
JavaScript
import ErrorChart from "./ErrorChart"
|
|
import { ParentSize } from "@visx/responsive";
|
|
|
|
const ResponsiveErrorChart = (props) => {
|
|
|
|
return (
|
|
<ParentSize className="graph-container">
|
|
{({ width: w, height: h }) => {
|
|
return (
|
|
<ErrorChart
|
|
width={w}
|
|
height={h}
|
|
data={props.data}
|
|
/>
|
|
);
|
|
}}
|
|
</ParentSize>
|
|
)
|
|
}
|
|
|
|
export default ResponsiveErrorChart
|