verify comment author addresses

This commit is contained in:
plebeius.eth
2023-07-08 14:37:08 +02:00
parent 972f425f58
commit 956efdd4c3
8 changed files with 83 additions and 66 deletions
+10
View File
@@ -0,0 +1,10 @@
import {useComment, useAuthorAddress} from '@plebbit/plebbit-react-hooks';
function VerifiedAuthor({ commentCid, children }) {
const comment = useComment({commentCid});
const {authorAddress, shortAuthorAddress} = useAuthorAddress({comment});
return children({ authorAddress, shortAuthorAddress });
}
export default VerifiedAuthor;