bigbuffet-rw/app/soapbox/hooks/useSoapboxConfig.ts
2022-03-28 14:58:50 -05:00

9 lines
334 B
TypeScript

import { getSoapboxConfig } from 'soapbox/actions/soapbox';
import { useAppSelector } from 'soapbox/hooks';
import type { SoapboxConfig } from 'soapbox/types/soapbox';
/** Get the Soapbox config from the store */
export const useSoapboxConfig = (): SoapboxConfig => {
return useAppSelector((state) => getSoapboxConfig(state));
};