@coinmeca/ui
Version:
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
14 lines • 642 B
JSX
"use client";
import { Layouts } from "../../../components";
import Style from "./Page.styled";
export default function Page(props) {
const scroll = typeof props?.scroll === "boolean" ? props?.scroll : true;
const snap = typeof props?.snap === "boolean" ? props?.snap : false;
return (<>
{props?.fallback && <Layouts.Panel style={{ position: "absolute" }}>{props?.fallback}</Layouts.Panel>}
<Style ref={props?.reference} $scroll={scroll} $snap={snap} $active={props?.active} style={props?.style}>
{props?.children}
</Style>
</>);
}
//# sourceMappingURL=Page.jsx.map