import { cn } from "@/lib/utils" import { m } from "framer-motion" import { useTranslation } from "react-i18next" export default function TabSwitch({ tabs, currentTab, setCurrentTab }: { tabs: string[]; currentTab: string; setCurrentTab: (tab: string) => void }) { const { t } = useTranslation() const customBackgroundImage = // @ts-expect-error CustomBackgroundImage is a global variable (window.CustomBackgroundImage as string) !== "" ? window.CustomBackgroundImage : undefined return (
{t("tabSwitch." + tab)}