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

10 lines
334 B
TypeScript
Raw Normal View History

import { getSoapboxConfig } from 'soapbox/actions/soapbox';
import { useAppSelector } from 'soapbox/hooks';
2022-03-28 12:58:50 -07:00
import type { SoapboxConfig } from 'soapbox/types/soapbox';
/** Get the Soapbox config from the store */
2022-03-28 12:58:50 -07:00
export const useSoapboxConfig = (): SoapboxConfig => {
return useAppSelector((state) => getSoapboxConfig(state));
};