UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

9 lines (8 loc) 378 B
import { createSelector } from "../../utils/selectors.js"; 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);