import Link from "next/link"; import classNames from "@calcom/lib/classNames"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { useUrlMatchesCurrentUrl } from "@calcom/lib/hooks/useUrlMatchesCurrentUrl"; 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 isCurrent = useUrlMatchesCurrentUrl(href); return ( {props.icon && ( // eslint-disable-next-line @typescript-eslint/ban-ts-comment //@ts-ignore
)} {isLocaleReady ? (