10 lines
No EOL
323 B
JavaScript
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); |