import { translationAtom } from "@/atoms/translations-atom"; import { useAtomValue } from "jotai"; import React from "react"; type TabsProps = { selectedTab: number; setSelectedTab: (tab: number) => void; }; const Tabs = ({ selectedTab, setSelectedTab }: TabsProps) => { const t = useAtomValue(translationAtom); return (
{ setSelectedTab(0); }} > {t("TITLE")} { setSelectedTab(1); }} > {t("SETTINGS.TITLE")}
); }; export default Tabs;