chore: server-and-serverless template

This commit is contained in:
e2e
2026-06-28 17:08:26 +02:00
commit 31e3be7352
202 changed files with 9063 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { createContext, useContext } from 'react'
export interface PreferencesContextValue {
locale: string
themeId: string
setLocale: (locale: string) => void
setThemeId: (themeId: string) => void
}
export const PreferencesContext = createContext<PreferencesContextValue>({
locale: 'en',
themeId: 'default',
setLocale: () => {},
setThemeId: () => {},
})
export function usePreferences(): PreferencesContextValue {
return useContext(PreferencesContext)
}