Renders the editor of the site's categories of one kind, dump or playlist,
on /manage for a user with the category:manage permission.
f
CategoryManager(unnamed 0: CategoryManagerProps): React.JSX.Element
Renders the categories of kind as chips that open an inline editor, and a
"+" chip that creates one. Only one editor is open at a time. A change
refetches the app-wide list, so the category switchers follow. Manage
shows it only to those who hold category:manage, and the server checks it
again.
I
CategoryManagerProps
Passed to CategoryManager by Manage, once for each kind.
-
kind: CategoryKind
The set it edits, and the kind of the categories it creates.
Usage
import * as mod from "src/components/category/CategoryManager.tsx";