6 lines
231 B
TypeScript
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));
|