import { Trans } from "@lingui/react/macro"; import { useAuth } from "../hooks/useAuth.ts"; import { FEED_TABS, type FeedTab } from "../config/feedTabs.ts"; import { useTabParam } from "../hooks/useTabParam.ts"; import { TabBar } from "./TabBar.tsx"; export function FeedTabBar() { const { user } = useAuth(); const [tab, setTab] = useTabParam(FEED_TABS, "hot"); const tabs = [ { key: "hot" as FeedTab, label: Hot }, { key: "new" as FeedTab, label: New }, { key: "journal" as FeedTab, label: Journal }, ...(user ? [{ key: "followed" as FeedTab, label: Followed }] : []), ]; return ( ); }