function PeerManager
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.

Return Type

React.JSX.Element

Usage

import { PeerManager } from "src/components/federation/PeerManager.tsx";