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

10 lines
329 B
TypeScript

import { getSettings } from 'soapbox/actions/settings';
import { useAppSelector } from './useAppSelector';
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));
};