/* * Copyright (C) Contributors to the Suwayomi project * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import { useContext, useEffect, useState } from 'react'; import Tab from '@mui/material/Tab'; import { useTranslation } from 'react-i18next'; import { Sources } from '@/screens/Sources'; import { Extensions } from '@/screens/Extensions'; import { TabPanel } from '@/components/tabs/TabPanel.tsx'; import { TabsWrapper } from '@/components/tabs/TabsWrapper.tsx'; import { TabsMenu } from '@/components/tabs/TabsMenu.tsx'; import { Migration } from '@/screens/Migration.tsx'; import { NavBarContext } from '@/components/context/NavbarContext.tsx'; export function Browse() { const { t } = useTranslation(); const { setTitle } = useContext(NavBarContext); const [tabNum, setTabNum] = useState(0); useEffect(() => { setTitle(t('global.label.browse')); }, [t]); return ( setTabNum(newTab)}> ); }