import { useApp } from "../../../hooks"; import clsx from "clsx"; import Link from "next/link"; import { useRouter } from "next/navigation"; import { Fragment, ReactNode } from "react"; export type TabWithIcon = { name?: string; href?: string; current: boolean; icon?: ReactNode; onClick?: () => void; className?: string; }; interface Props { tabs: TabWithIcon[]; className?: string; justify?: "start" | "center" | "end" | "between"; breakpoint?: "sm" | "md" | "lg" | "xl" | "2xl"; } export default function TabsWithIcons({ tabs, className, justify, breakpoint = "md" }: Props) { const { t } = useApp(); const navigate = useRouter(); return (