1
0
Fork 0

Added Statistics calculation

Statistics now show calculated values
This commit is contained in:
Techognito 2025-09-04 17:30:00 +02:00
parent fe87374e47
commit fc0f69dacb
2147 changed files with 141321 additions and 39 deletions

View file

@ -0,0 +1,20 @@
'use client';
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import { DEFAULT_LOCALE } from "../locales/enUS.js";
import { PickerAdapterContext } from "../LocalizationProvider/LocalizationProvider.js";
export const useLocalizationContext = () => {
const localization = React.useContext(PickerAdapterContext);
if (localization === null) {
throw new Error(['MUI X: Can not find the date and time pickers localization context.', 'It looks like you forgot to wrap your component in LocalizationProvider.', 'This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package'].join('\n'));
}
if (localization.adapter === null) {
throw new Error(['MUI X: Can not find the date and time pickers adapter from its localization context.', 'It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider.'].join('\n'));
}
const localeText = React.useMemo(() => _extends({}, DEFAULT_LOCALE, localization.localeText), [localization.localeText]);
return React.useMemo(() => _extends({}, localization, {
localeText
}), [localization, localeText]);
};
export const usePickerAdapter = () => useLocalizationContext().adapter;