Files
5chan/src/components/VerifiedAuthor.jsx
T

11 lines
378 B
React
Raw Normal View History

2023-09-09 11:02:23 +02:00
import React from 'react';
2023-07-08 14:37:08 +02:00
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 });
}
2023-09-09 11:02:23 +02:00
export default React.memo(VerifiedAuthor);