@progress/kendo-react-scheduler
Version:
React Scheduler brings the functionality of Outlook's Calendar to a single UI component. KendoReact Scheduler package
9 lines (8 loc) • 1.11 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../hooks/useControlledState.js");var E=(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))(E||{});const n=(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}},S=(e,o,s)=>{const[t,r]=l.useControlledState(e,o,s);return[t,r,O=>{const a=n(t,O);r(a)}]};exports.SHOW_REMOVE_DIALOG_ACTION=E;exports.useShowRemoveDialog=S;