Renders the tab bar of the index page, with the category switcher before the tabs.
Renders the "hot", "new" and "journal" tabs, and "followed" for a signed-in
user. A tab leads to the same scope: /new for every dump, /music/new for
a category, and the viewer's default tab to the bare / or /music. A tab
is a view of the same page, so it takes the place of the current history
entry, while picking a category, another page, adds one and keeps the tab
and its view, from /music/follow/playlists to /cinema/follow/playlists.
Index renders it twice, in the header and below it, and CSS shows one by
screen width.
Passed to FeedTabBar by Index, from the URL it renders.
-
categorySlug: string
The category whose feed is shown, or none for every dump.
-
followView: FollowView
The view of the "follow" tab, which picking a category keeps.
-
tab: FeedTab
The tab shown, the viewer's default one on a bare path.
Usage
import * as mod from "src/components/feed/FeedTabBar.tsx";