import React, { useCallback } from 'react'; import { useAppSelector } from 'soapbox/hooks'; import Account, { IAccount } from '../components/account'; import { makeGetAccount } from '../selectors'; interface IAccountContainer extends Omit { id: string } const AccountContainer: React.FC = ({ id, ...props }) => { const getAccount = useCallback(makeGetAccount(), []); const account = useAppSelector(state => getAccount(state, id)); return ( ); }; export default AccountContainer;