UNPKG

@mui/x-date-pickers

Version:

The community edition of the MUI X Date and Time Picker components.

10 lines (8 loc) 323 B
'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);