import Link from "next/link"; import { useRouter } from "next/router"; import classNames from "@calcom/lib/classNames"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import type { SVGComponent } from "@calcom/types/SVGComponent"; import { Avatar } from "../../avatar"; import { SkeletonText } from "../../skeleton"; export type HorizontalTabItemProps = { name: string; disabled?: boolean; className?: string; href: string; linkShallow?: boolean; linkScroll?: boolean; icon?: SVGComponent; avatar?: string; }; const HorizontalTabItem = function ({ name, href, linkShallow, linkScroll, 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
)} {isLocaleReady ? (