Files
ETB/ETB-FrontEnd/node_modules/@mui/x-charts/esm/hooks/useChartId.js
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

14 lines
434 B
JavaScript

'use client';
import { useStore } from "../internals/store/useStore.js";
import { useSelector } from "../internals/store/useSelector.js";
import { selectorChartId } from "../internals/plugins/corePlugins/useChartId/useChartId.selectors.js";
/**
* Get the unique identifier of the chart.
* @returns chartId if it exists.
*/
export function useChartId() {
const store = useStore();
return useSelector(store, selectorChartId);
}