Renders the list of the other gerbeur instances an admin trusts or blocks,
on /manage, for those who hold federation:manage. Where users of other
instances don't sign in, only blocking is left: it keeps this instance's
users from signing in to one.
f
PeerManager(): React.JSX.Element
Renders each listed instance with its status, which a click changes
(PUT /api/federation/peers), and a button that takes it off the lists
(DELETE /api/federation/peers/:host), then a field that adds one. The
server checks that it answers as a gerbeur, and the permission again.
Without FEDERATION_INCOMING it lists and adds only blocked
instances; the trusted ones are kept for when it is back.
Usage
import * as mod from "src/components/federation/PeerManager.tsx";