@mui/x-charts
Version:
The community edition of MUI X Charts components.
15 lines (13 loc) • 521 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.selectorChartId = void 0;
var _selectors = require("../../utils/selectors");
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.
*/
const selectorChartId = exports.selectorChartId = (0, _selectors.createSelector)([selectorChartIdState], idState => idState.chartId);
;