Add useWebConfig hook

This commit is contained in:
Bill Thornton 2023-05-05 11:47:08 -04:00
parent 5f86d89ca6
commit 865df884fd
3 changed files with 70 additions and 7 deletions

20
src/types/webConfig.ts Normal file
View file

@ -0,0 +1,20 @@
interface Theme {
name: string
id: string
color: string
}
interface MenuLink {
name: string
icon?: string
url: string
}
export interface WebConfig {
includeCorsCredentials?: boolean
multiserver?: boolean
themes?: Theme[]
menuLinks?: MenuLink[]
servers?: string[]
plugins?: string[]
}