UNPKG

@progress/kendo-react-grid

Version:

React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package

10 lines (9 loc) 978 B
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use client"; "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react");function f(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const u=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,u.get?u:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const a=f(s);function l({onOpen:t,onClose:e}){const[r,u]=a.useState(!1),i=a.useCallback(c=>{r!==c&&(u(c),c?t==null||t():e==null||e())},[r,t,e]);return{isOpen:r,setIsOpen:u,togglePopup:i}}exports.useSmartBoxPopup=l;