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