2022-03-23 18:29:35 -07:00
|
|
|
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';
|
2022-03-23 18:29:35 -07:00
|
|
|
|
|
|
|
/** Get the Soapbox config from the store */
|
2022-03-28 12:58:50 -07:00
|
|
|
export const useSoapboxConfig = (): SoapboxConfig => {
|
2022-03-23 18:29:35 -07:00
|
|
|
return useAppSelector((state) => getSoapboxConfig(state));
|
|
|
|
};
|