diff --git a/apps/web/components/NavTabs.tsx b/apps/web/components/NavTabs.tsx index b0946f04..373f8830 100644 --- a/apps/web/components/NavTabs.tsx +++ b/apps/web/components/NavTabs.tsx @@ -1,49 +1,52 @@ +import { AdminRequired } from "components/ui/AdminRequired"; import Link, { LinkProps } from "next/link"; import { useRouter } from "next/router"; -import React, { ElementType, FC } from "react"; +import React, { ElementType, FC, Fragment } from "react"; import classNames from "@lib/classNames"; -interface Props { +export interface NavTabProps { tabs: { name: string; href: string; icon?: ElementType; + adminRequired?: boolean; }[]; linkProps?: Omit; } -const NavTabs: FC = ({ tabs, linkProps }) => { +const NavTabs: FC = ({ tabs, linkProps }) => { const router = useRouter(); return ( <> -