UNPKG

fui-fancyui

Version:
14 lines (13 loc) 453 B
"use client"; import { jsx as e, Fragment as c } from "react/jsx-runtime"; import { useEffect as a } from "react"; import i from "../../atoms/ScrollableBar/ScrollableBar.js"; function s(l) { const { activateScrollbar: r, scrollable: t, children: o } = l; return a(() => { r && (document.body.style.overflow = "auto"); }, []), /* @__PURE__ */ e(c, { children: t && r ? /* @__PURE__ */ e(i, { children: o }) : o }); } export { s as default };