import { Link, useNavigate } from "react-router"; import clsx from "clsx"; import { Fragment, ReactNode, useId } from "react"; import { useTranslation } from "react-i18next"; 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 } = useTranslation(); const navigate = useNavigate(); const tabsSelectId = useId(); return (