"use client"; import clsx from "clsx"; import { motion } from "motion/react"; import type { ComponentProps } from "react"; import styles from "./index.module.scss"; import buttonStyles from "../Button/index.module.scss"; import { Tab, TabList as UnstyledTabList } from "../unstyled/Tabs/index.js"; type OwnProps = { label: string; pathname?: string | undefined; items: ComponentProps[]; }; type Props = Omit, keyof OwnProps> & OwnProps; export const TabList = ({ label, className, pathname, ...props }: Props) => (
{({ className: tabClassName, children, ...tab }) => ( {(args) => ( <> {typeof children === "function" ? children(args) : children} {args.isSelected && ( )} )} )}
);