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 an entity within a space
useModerateSpaceEntity
import { useModerateSpaceEntity } from "@sublay/react-js"; function EntityModerationActions({ spaceId, entityId }: { spaceId: string; entityId: string }) { const moderate = useModerateSpaceEntity(); return ( <div> <button onClick={() => moderate({ spaceId, entityId, action: "approve" })}> Approve </button> <button onClick={() => moderate({ spaceId, entityId, action: "remove" })}> Remove </button> </div> ); }