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 PlotLine = /*#__PURE__*/memo(props => {
const plotline = usePlotBandLineLifecycle(props, 'plotLines');
const {
children
} = props;
if (!children && !plotline) return null;
return /*#__PURE__*/_jsx(PlotBandLineContext.Provider, {
value: plotline,
children: children
});
});
PlotLine.displayName = 'PlotLine';
export default PlotLine;