import { AdminRequired } from "components/ui/AdminRequired"; import noop from "lodash/noop"; import Link, { LinkProps } from "next/link"; import { useRouter } from "next/router"; import { FC, Fragment, MouseEventHandler } from "react"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import classNames from "@lib/classNames"; import { SVGComponent } from "@lib/types/SVGComponent"; export interface NavTabProps { tabs: { name: string; /** If you want to change the path as per current tab */ href?: string; /** If you want to change query param tabName as per current tab */ tabName?: string; icon?: SVGComponent; adminRequired?: boolean; className?: string; }[]; linkProps?: Omit; } const NavTabs: FC = ({ tabs, linkProps, ...props }) => { const router = useRouter(); const { t } = useLocale(); return ( <>
); }; export default NavTabs;