UNPKG

@progress/kendo-react-scheduler

Version:

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

36 lines (35 loc) 1.23 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 a } from "../../hooks/useControlledState.mjs"; var n = /* @__PURE__ */ ((e) => (e.set = "SHOW_REMOVE_DIALOG_SET", e.open = "SHOW_REMOVE_DIALOG_OPEN", e.close = "SHOW_REMOVE_DIALOG_CLOSE", e.reset = "SHOW_REMOVE_DIALOG_RESET", e.toggle = "SHOW_REMOVE_DIALOG_TOGGLE", e))(n || {}); const S = (e, o) => { switch (o.type) { case "SHOW_REMOVE_DIALOG_RESET": return !1; case "SHOW_REMOVE_DIALOG_SET": return o.payload; case "SHOW_REMOVE_DIALOG_OPEN": return !0; case "SHOW_REMOVE_DIALOG_CLOSE": return !1; case "SHOW_REMOVE_DIALOG_TOGGLE": return !e; default: return e; } }, R = (e, o, E) => { const [t, r] = a(e, o, E); return [t, r, (s) => { const O = S(t, s); r(O); }]; }; export { n as SHOW_REMOVE_DIALOG_ACTION, R as useShowRemoveDialog };