UserControls: {
    controls(user: User, context: Component<any, any>): ItemList<Children>;
    deleteAction(user: User): void;
    destructiveControls(user: User): ItemList<Children>;
    editAction(user: User): void;
    moderationControls(user: User): ItemList<Children>;
    showDeletionAlert(user: User, type: string): void;
    userControls(): ItemList<Children>;
}

The UserControls utility constructs a list of buttons for a user which perform actions on it.

Type declaration

Generated using TypeDoc v0.23.24