0518d734 months ago20 lines · 601 B| 1 | "use client"; |
| 2 | |
| 3 | import { createContext, useContext |
| 4 | |
| 5 | type AuthSettings |
| 6 | appName: string |
| 7 | logoUrl: string |
| 8 | socialProviders: string |
| 9 | smtpEnabled: boolean |
| 10 | }; |
| 11 | |
| 12 | const AuthSettingsContext = createContext |
| 13 | |
| 14 | export function AuthSettingsProvider({ |
| 15 | return <AuthSettingsContext value |
| 16 | } |
| 17 | |
| 18 | export function useAuthSettings() |
| 19 | return useContext(AuthSettingsContext |
| 20 | } |