import React, { memo } from "react";
import { useContainer, useGetChart, useDashboardAttributes } from "../../charts/charts";
import { ChartHeadsWrapper, useChartHeadDuration } from "../../charts/chartHead";
import { HeadMain } from "./head-main";
const HeadMainContainer = props => {
    const container = useContainer();
    const getChart = useGetChart();
    const { width } = container.getBoundingClientRect();
    const duration = useChartHeadDuration(width, 1);
    const { host, nodeIDs, ...restAttributes } = useDashboardAttributes();
    return (React.createElement(ChartHeadsWrapper, Object.assign({}, props),
        React.createElement(HeadMain, { getChart: getChart, duration: duration, host: host, nodeIDs: nodeIDs, commonAttributesOverrides: restAttributes })));
};
export default memo(HeadMainContainer);
//# sourceMappingURL=headMainContainer.js.map