1
0
Fork 0
react-playground/node_modules/@mui/x-date-pickers/esm/internals/hooks/useNullablePickerContext.js
Techognito fc0f69dacb Added Statistics calculation
Statistics now show calculated values
2025-09-04 17:30:00 +02:00

10 lines
No EOL
323 B
JavaScript

'use client';
import * as React from 'react';
import { PickerContext } from "../../hooks/usePickerContext.js";
/**
* Returns the context passed by the Picker wrapping the current component.
* If the context is not found, returns `null`.
*/
export const useNullablePickerContext = () => React.useContext(PickerContext);