Save a comment
Save a comment in Bitsocial React Hooks. Usage, options, and examples.
Saved comments are kept in the account’s savedComments list and are included when the account is exported.
const { saved, saveComment, unsaveComment } = useSaveComment({ commentCid: "Qm..." });
if (saved) {
await unsaveComment();
} else {
await saveComment();
}