import React, { useCallback } from 'react'; import DisplayName from 'soapbox/components/display-name'; import { Avatar } from 'soapbox/components/ui'; import { useAppSelector } from 'soapbox/hooks'; import { makeGetAccount } from 'soapbox/selectors'; interface IAccount { accountId: string, } const Account: React.FC = ({ accountId }) => { const getAccount = useCallback(makeGetAccount(), []); const account = useAppSelector((state) => getAccount(state, accountId)); if (!account) return null; return (
); }; export default Account;