PostControls: {
    controls(post: Post, context: Component<any, any>): ItemList<Children>;
    deleteAction(context: any): Promise<void>;
    destructiveControls(post: Post, context: Component<any, any>): ItemList<Children>;
    editAction(): Promise<void>;
    hideAction(): Promise<void>;
    moderationControls(post: Post, context: Component<any, any>): ItemList<Children>;
    restoreAction(): Promise<void>;
    userControls(post: Post, context: Component<any, any>): ItemList<Children>;
}

The PostControls utility constructs a list of buttons for a post which perform actions on it.

Type declaration

Generated using TypeDoc v0.23.24