bigbuffet-rw/app/soapbox/hooks/useAccount.ts
2022-12-20 17:45:29 -05:00

8 lines
247 B
TypeScript

import { useAppSelector } from 'soapbox/hooks';
import { makeGetAccount } from 'soapbox/selectors';
export const useAccount = (id: string) => {
const getAccount = makeGetAccount();
return useAppSelector((state) => getAccount(state, id));
};