import Link from "next/link"; import { useRouter } from "next/router"; import { ComponentProps } from "react"; import classNames from "@calcom/lib/classNames"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { SVGComponent } from "@calcom/types/SVGComponent"; import { Avatar } from "../../avatar"; import { SkeletonText } from "../../skeleton"; export type HorizontalTabItemProps = { name: string; disabled?: boolean; className?: string; href: string; linkProps?: Omit, "href">; icon?: SVGComponent; avatar?: string; }; const HorizontalTabItem = function ({ name, href, linkProps, avatar, ...props }: HorizontalTabItemProps) { const { t, isLocaleReady } = useLocale(); const { asPath } = useRouter(); const isCurrent = asPath === href; return ( {props.icon && ( // eslint-disable-next-line @typescript-eslint/ban-ts-comment //@ts-ignore