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 { SkeletonText } from "../../skeleton"; export type HorizontalTabItemProps = { name: string; disabled?: boolean; className?: string; href: string; linkProps?: Omit, "href">; icon?: SVGComponent; }; const HorizontalTabItem = function ({ name, href, linkProps, ...props }: HorizontalTabItemProps) { const { t, isLocaleReady } = useLocale(); const { asPath } = useRouter(); const isCurrent = asPath.startsWith(href); return ( {props.icon && ( // eslint-disable-next-line @typescript-eslint/ban-ts-comment //@ts-ignore