signal-desktop/ts/shims/getUserTheme.ts
2021-10-26 14:15:33 -05:00

9 lines
279 B
TypeScript

// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { ThemeType } from '../types/Util';
import { getTheme } from '../state/selectors/user';
export function getUserTheme(): ThemeType {
return getTheme(window.reduxStore.getState());
}