UNPKG

@sanity/ui

Version:

The Sanity UI components.

12 lines (9 loc) 257 B
import {useContext} from 'react' import {DialogContext, DialogContextValue} from './dialogContext' /** * This API might change. DO NOT USE IN PRODUCTION. * @beta */ export function useDialog(): DialogContextValue { return useContext(DialogContext) }