pleroma/app/soapbox/hooks/useSoapboxConfig.ts
2023-09-16 05:47:11 -05:00

10 lines
338 B
TypeScript

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