interface PlaylistSortTabsProps

Passed to PlaylistSortTabs by ProfilePlaylistsTab, whose tabs are PLAYLIST_SORTS, and by Playlists, whose PLAYLISTS_TABS add the viewer's own playlists for a signed-in user. Both keep the active one in their URL's query.

Type Parameters

T extends PlaylistsTab

Properties

tabs: readonly T[]

The tabs offered, in order.

The active tab.

onChange: (sort: T) => void
optional
leading: ReactNode

Goes before the tabs, as the playlists page's category menu does.

Usage

import { type PlaylistSortTabsProps } from "src/components/playlist/PlaylistSortTabs.tsx";