UNPKG

@progress/kendo-react-scheduler

Version:

React Scheduler brings the functionality of Outlook's Calendar to a single UI component. KendoReact Scheduler package

40 lines (39 loc) 1.29 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { useControlledState as E } from "../../hooks/useControlledState.mjs"; var s = /* @__PURE__ */ ((e) => (e.set = "SHOW_OCCURRENCE_DIALOG_SET", e.open = "SHOW_OCCURRENCE_DIALOG_OPEN", e.close = "SHOW_OCCURRENCE_DIALOG_CLOSE", e.reset = "SHOW_OCCURRENCE_DIALOG_RESET", e.toggle = "SHOW_OCCURRENCE_DIALOG_TOGGLE", e))(s || {}); const u = (e, r) => { switch (r.type) { case "SHOW_OCCURRENCE_DIALOG_RESET": return !1; case "SHOW_OCCURRENCE_DIALOG_SET": return r.payload; case "SHOW_OCCURRENCE_DIALOG_OPEN": return !0; case "SHOW_OCCURRENCE_DIALOG_CLOSE": return !1; case "SHOW_OCCURRENCE_DIALOG_TOGGLE": return !e; default: return e; } }, _ = (e, r, O) => { const [c, o] = E( e, r, O ); return [c, o, (n) => { const t = u(c, n); o(t); }]; }; export { s as SHOW_OCCURRENCE_DIALOG_ACTION, _ as useShowOccurrenceDialog };