Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Approve or remove a comment within a space
useModerateSpaceComment
import { useModerateSpaceComment } from "@sublay/react-js"; function CommentModerationActions({ spaceId, commentId }: { spaceId: string; commentId: string }) { const moderate = useModerateSpaceComment(); return ( <div> <button onClick={() => moderate({ spaceId, commentId, action: "approve" })}> Approve </button> <button onClick={() => moderate({ spaceId, commentId, action: "remove" })}> Remove </button> </div> ); }