@mui/x-date-pickers-pro
Version:
The Pro plan edition of the MUI X Date and Time Picker components.
12 lines (10 loc) • 418 B
JavaScript
'use client';
import * as React from 'react';
import { PickerRangePositionContext } from "../../hooks/usePickerRangePositionContext.js";
/**
* Returns information about the range position of the picker that wraps the current component.
* If no picker wraps the current component, returns `null`.
*/
export function useNullablePickerRangePositionContext() {
return React.useContext(PickerRangePositionContext);
}