UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

15 lines (14 loc) 598 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useStore = useStore; var _ChartProvider = require("../../context/ChartProvider"); // This hook should be removed because user and us should not interact with the store directly, but with public/private APIs function useStore() { const context = (0, _ChartProvider.useChartContext)(); if (!context) { throw new Error(['MUI X Charts: Could not find the charts context.', 'It looks like you rendered your component outside of a ChartContainer parent component.'].join('\n')); } return context.store; }