UNPKG

@mui/x-date-pickers

Version:

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

11 lines (10 loc) 461 B
'use client'; import * as React from 'react'; export const PickerTextFieldOwnerStateContext = /*#__PURE__*/React.createContext(null); export const usePickerTextFieldOwnerState = () => { const value = React.useContext(PickerTextFieldOwnerStateContext); if (value == null) { throw new Error(['MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component'].join('\n')); } return value; };