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