@progress/kendo-react-scheduler
Version:
React Scheduler brings the functionality of Outlook's Calendar to a single UI component. KendoReact Scheduler package
25 lines (24 loc) • 1 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
*-------------------------------------------------------------------------------------------
*/
import * as e from "react";
import { SchedulerTask as o } from "./SchedulerTask.mjs";
const k = e.forwardRef(
(r, a) => {
const { task: n, _ref: c, ...u } = r, t = e.useRef(null), s = e.useRef(null);
e.useImperativeHandle(s, () => ({ props: r, element: t.current && t.current.element })), e.useImperativeHandle(c, () => t.current), e.useImperativeHandle(a, () => s.current);
const l = n || m.task;
return /* @__PURE__ */ e.createElement(l, { ...u, _ref: t });
}
), m = {
task: o
};
k.displayName = "KendoReactSchedulerViewTask";
export {
k as SchedulerViewTask,
m as schedulerViewTaskDefaultProps
};