UNPKG

@sanity/scheduled-publishing

Version:

> [!IMPORTANT] > As of [v3.39.0](https://www.sanity.io/changelog/e6013ee5-8214-4e03-9593-f7b19124b8a3) of Sanity Studio, this plugin has been deprecated and the Scheduled Publishing functionality has been moved into the core studio package. > Read more an

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