import { ColorSchemeName } from 'react-native' ; import { ThemePair } from '@devhub/core' ; import { createAction } from '../helpers' ; export function setTheme ( payload ) { return createAction ( 'SET_THEME' , payload ) ; } export function setPreferrableTheme ( payload ) { return createAction ( 'SET_PREFERRABLE_THEME' , payload ) ; } export function dayNightSwitch ( ) { return createAction ( 'DAY_NIGHT_SWITCH' ) ; } export function appearenceColorSchemeChanged ( colorScheme ) { return createAction ( 'APPEARENCE_COLOR_SCHEME_CHANGED' , colorScheme ) ; }