react-jsx-highcharts
Version:
Highcharts charts built using React components
18 lines • 598 B
JavaScript
import * as React from 'react';
import { memo } from 'react';
import PlotBandLineContext from '../PlotBandLineContext';
import usePlotBandLineLifecycle from './UsePlotBandLineLifecycle';
import { jsx as _jsx } from "react/jsx-runtime";
const PlotBand = /*#__PURE__*/memo(props => {
const plotband = usePlotBandLineLifecycle(props, 'plotBands');
const {
children
} = props;
if (!children && !plotband) return null;
return /*#__PURE__*/_jsx(PlotBandLineContext.Provider, {
value: plotband,
children: children
});
});
PlotBand.displayName = 'PlotBand';
export default PlotBand;