bigbuffet-rw/app/soapbox/hooks/useAccount.ts

7 lines
231 B
TypeScript
Raw Normal View History

2022-04-26 10:03:41 -07:00
import { useAppSelector } from 'soapbox/hooks';
import { makeGetAccount } from 'soapbox/selectors';
const getAccount = makeGetAccount();
export const useAccount = (id: string) => useAppSelector((state) => getAccount(state, id));