UNPKG

@theguild/components

Version:
12 lines (11 loc) 383 B
"use client"; import { jsx } from "react/jsx-runtime"; import { usePathname } from "next/navigation"; const Body = ({ lightOnlyPages, children }) => { const pathname = usePathname(); const isLightOnlyPage = lightOnlyPages.includes(pathname); return /* @__PURE__ */ jsx("body", { className: isLightOnlyPage ? "light text-green-1000" : void 0, children }); }; export { Body };