2022-03-23 18:29:35 -07:00
|
|
|
import { getSettings } from 'soapbox/actions/settings';
|
2023-09-16 03:47:11 -07:00
|
|
|
|
|
|
|
import { useAppSelector } from './useAppSelector';
|
2022-03-23 18:29:35 -07:00
|
|
|
|
|
|
|
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));
|
|
|
|
};
|