diff options
| author | Raphael Kabo <raphaelkabo@hey.com> | 2023-10-06 16:17:03 +0100 | 
|---|---|---|
| committer | Raphael Kabo <raphaelkabo@hey.com> | 2023-10-06 16:19:05 +0100 | 
| commit | 44cd1d5b4ee6bfbccffbf6c2448b684a7afd31de (patch) | |
| tree | 6dc5249570609edd8544bae5cbed1d7676f2b761 /src/util | |
| parent | 452d5b0b71ad22d149c61920baddba8377974752 (diff) | |
Add config util file
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/config.ts | 17 | 
1 files changed, 17 insertions, 0 deletions
diff --git a/src/util/config.ts b/src/util/config.ts new file mode 100644 index 0000000..a012398 --- /dev/null +++ b/src/util/config.ts @@ -0,0 +1,17 @@ +import getConfig from "../lib/config.js"; + +const config = getConfig(); + +interface FrontendConfig { +  domain: string; +  email: string; +  siteName: string; +  showKofi: boolean; +} + +export const frontendConfig = (): FrontendConfig => ({ +  domain: config.general.domain, +  email: config.general.email, +  siteName: config.general.site_name, +  showKofi: config.general.show_kofi, +});  | 
