UNPKG

@progress/kendo-react-gantt

Version:

React Gantt enables the display of self-referencing tabular data with many features. KendoReact Gantt package

27 lines (26 loc) 815 B
/** * @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 t from "react"; var a = /* @__PURE__ */ ((e) => (e[e.add = 0] = "add", e[e.remove = 1] = "remove", e))(a || {}); const o = () => { const e = t.useRef({}), s = t.useCallback((r) => { switch (r.type) { case 0: e.current[r.id] = r.itemRef; break; case 1: delete e.current[r.id]; break; } }, []); return [e, s]; }; export { a as STORE_ACTION, o as useDictionaryStore };