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

10 lines
325 B
TypeScript
Raw Normal View History

import { getSettings } from 'soapbox/actions/settings';
import { useAppSelector } from 'soapbox/hooks';
import type { Map as ImmutableMap } from 'immutable';
/** Get the user settings from the store */
export const useSettings = (): ImmutableMap<string, any> => {
return useAppSelector((state) => getSettings(state));
};