9 lines
334 B
TypeScript
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));
|
|
};
|