import { AdminRequired } from "components/ui/AdminRequired"; import Link, { LinkProps } from "next/link"; import { useRouter } from "next/router"; import React, { ElementType, FC, Fragment, MouseEventHandler } from "react"; import classNames from "@lib/classNames"; 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?: ElementType; adminRequired?: boolean; }[]; linkProps?: Omit; } const NavTabs: FC = ({ tabs, linkProps, ...props }) => { const router = useRouter(); return ( <>
); }; export default NavTabs;