mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
12 lines
384 B
React
12 lines
384 B
React
import React from 'react';
|
|
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 React.memo(VerifiedAuthor);
|