UNPKG

@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).

12 lines 560 B
"use client"; import TabContent from "./TabContent"; import Style from "./TabContainer.styled"; export default function TabContainer(props) { return (<Style $scroll={props?.scroll} style={props?.style}> {props?.contents && (props?.contents?.length > 0 ? (props?.contents.map((content, i) => (<TabContent key={i} {...content}> {content.children} </TabContent>))) : (<TabContent>There is no content.</TabContent>))} </Style>); } //# sourceMappingURL=TabContainer.jsx.map