bigbuffet-rw/app/soapbox/hooks/useAccount.ts
2022-05-02 13:52:37 -04:00

6 lines
231 B
TypeScript

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