Files
website/ui_mockup/src/settings/theme.ts
Gokul 1c6627bdfb
All checks were successful
Smart Deploy / build-deploy (push) Successful in 2m38s
feat: added pages, forms, and functionality.
2026-02-08 21:11:57 +05:30

20 lines
456 B
TypeScript

import { Theme, Container } from './types';
const injectedTheme: string = '%INJECTED_THEME%';
const injectedContainer: string = '%INJECTED_CONTAINER%';
let theme: Theme = 'light';
let container: Container = 'none';
if (injectedTheme === 'light' || injectedTheme === 'dark') {
theme = injectedTheme;
}
if (injectedContainer === 'centered' || injectedContainer === 'none') {
container = injectedContainer;
}
export default {
theme,
container,
};