packages/app-settings/src/contexts/AppSettings/Context.ts
import { createContext } from 'react'
import type { WebAppNavigationType } from '../../WebAppNavigationType.ts'
import { appSettingDefault } from './appSettingDefault.ts'
export interface AppSettingsContextProps {
changeMaxAccounts?: (value: number) => void
changeNavigationCollapsed?: (value: boolean) => void
changeNavigationType?: (value: WebAppNavigationType) => void
changeSeedPhrase?: (value: string) => void
darkMode?: boolean
developerMode?: boolean
enableDarkMode?: (value: boolean) => void
enableDeveloperMode?: (value: boolean) => void
maxAccounts?: number
navigationCollapsed?: boolean
navigationType?: WebAppNavigationType
seedPhrase?: string
}
export const AppSettingsContext = createContext<AppSettingsContextProps>(appSettingDefault())