@progress/kendo-react-scheduler
Version:
React Scheduler brings the functionality of Outlook's Calendar to a single UI component. KendoReact Scheduler package
21 lines (20 loc) • 653 B
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import * as n from "react";
const S = (a, t, e) => {
const [d, s] = n.useState(t || a), i = n.useCallback(
(o, r) => {
s(o), e && e.call(void 0, { ...r, value: o });
},
[e, s]
);
return [t !== void 0 ? t : d, i];
};
export {
S as useControlledState
};