@progress/kendo-react-grid
Version:
React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package
26 lines (25 loc) • 720 B
JavaScript
/**
* @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";
import * as c from "react";
function i({ onOpen: t, onClose: r }) {
const [u, s] = c.useState(!1), f = c.useCallback(
(a) => {
u !== a && (s(a), a ? t == null || t() : r == null || r());
},
[u, t, r]
);
return {
isOpen: u,
setIsOpen: s,
togglePopup: f
};
}
export {
i as useSmartBoxPopup
};