UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

22 lines (17 loc) 503 B
import DialogTimeZone from '../components/dialogs/DialogTimeZone' import {useDialogVisible} from './useDialogVisibile' // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types function useDialogTimeZone() { const {visible, show, hide} = useDialogVisible() const dialogProps = { onClose: hide, visible, } return { DialogTimeZone: visible ? DialogTimeZone : null, dialogProps, dialogTimeZoneShow: show, hide, } } export default useDialogTimeZone