"use client"; import { Tab, TabList as UnstyledTabList, } from "@pythnetwork/component-library/unstyled/Tabs"; import clsx from "clsx"; import { motion } from "motion/react"; import { type ComponentProps, useId } from "react"; import styles from "./tab-list.module.scss"; type OwnProps = { label: string; items: (ComponentProps & { header: string; body: string })[]; }; type Props = Omit, keyof OwnProps> & OwnProps; export const TabList = ({ label, className, ...props }: Props) => { const layoutId = useId(); return ( {({ header, body, className: tabClassName, ...tabProps }) => ( {(args) => ( <>

{header}

{body}

{args.isSelected && ( )} )}
)}
); };