Dynamically generate themes, and search engines

This commit is contained in:
MotorTruck1221
2025-04-07 21:22:04 -06:00
parent 415af11053
commit 8af7b073fa
8 changed files with 77 additions and 10 deletions
+13 -1
View File
@@ -4,4 +4,16 @@ interface SettingsProps extends Props {
active: 'appearance' | 'credits' | 'links' | 'proxy';
}
export type { SettingsProps };
type DropdownOptions = {
name: string;
value: string;
default?: boolean;
};
const SearchEngines: Record<string, string> = {
DuckDuckGo: "https://duckduckgo.com/?q=%s",
Google: "https://google.com/search?q=%s",
Bing: "https://bing.com/search?q=%s",
};
export { type SettingsProps, type DropdownOptions, SearchEngines };