import { useTranslation } from "react-i18next"; import Spinner from "@/lib/components/ui/Spinner"; import { Tabs, TabsContent, TabsList } from "@/lib/components/ui/Tabs"; import { BrainSearchBar } from "./components/BrainSearchBar"; import { BrainsList } from "./components/BrainsList"; import { useBrainsTabs } from "./hooks/useBrainsTabs"; import { StyledTabsTrigger } from "../StyledTabsTrigger"; export const BrainsTabs = (): JSX.Element => { const { t } = useTranslation(["brain", "translation"]); const { searchQuery, isFetchingBrains, setSearchQuery, brains, privateBrains, publicBrains, } = useBrainsTabs(); if (isFetchingBrains && brains.length === 0) { return (