@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).
26 lines • 1.2 kB
JSX
"use client";
import { Fragment, memo } from "react";
const GridContent = (props) => {
const Child = (props?.children?.children?.type !== Fragment &&
props.children?.children?.$$typeof &&
props?.children?.children?.type) ||
(props?.children?.type !== Fragment && props?.children?.$$typeof && props?.children?.type);
const Content = Child ? (<Child {...{
...(props?.children?.props || props?.children?.children?.props),
}}>
{props?.children?.props?.children || props?.children?.children}
</Child>) : (<div {...{
...(props?.children?.props || props?.children?.children?.props),
}}>
{props?.children?.children || props?.children}
</div>);
const Area = (typeof props?.format === "function" &&
props?.format({
...props?.props,
children: Content?.props?.children || Content,
})) ||
(props?.format?.$$typeof && props?.format?.type !== Fragment ? (<props.format.type {...props?.props}>{Content?.props?.children || Content}</props.format.type>) : (Content));
return Area;
};
export default memo(GridContent);
//# sourceMappingURL=GridContent.jsx.map