import { THEME_MODE } from '../utils' ; import { ThemeModeEnum } from './ThemeModeEnum' ; import { TGetThemeModeFromLS , TSaveThemeModeToLS } from './types' ; export const saveThemeModeToLS = ( mode ) => { localStorage . setItem ( THEME_MODE , mode ) ; } ; export const getThemeModeFromLS = ( ) => { return localStorage . getItem ( THEME_MODE ) as ThemeModeEnum ; } ;