UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

9 lines (8 loc) 376 B
import { createSelector } from '@mui/x-internals/store'; const selectorChartIdState = state => state.id; /** * Get the id attribute of the chart. * @param {ChartState<[UseChartIdSignature]>} state The state of the chart. * @returns {string} The id attribute of the chart. */ export const selectorChartId = createSelector(selectorChartIdState, idState => idState.chartId);