Files
remark42/frontend/app/hooks/useTheme.ts
T
2021-05-06 15:55:46 -05:00

11 lines
237 B
TypeScript

import { useSelector } from 'react-redux';
import { StoreState } from 'store';
import { Theme } from 'common/types';
export function useTheme() {
const theme = useSelector<StoreState, Theme>(({ theme }) => theme);
return theme;
}