diff --git a/src/components/Loader.astro b/src/components/Loader.astro
index 0bf28b8..377f82c 100644
--- a/src/components/Loader.astro
+++ b/src/components/Loader.astro
@@ -3,8 +3,13 @@
import { SW } from "@utils/proxy.ts";
const settings = new Settings();
const sw = new SW();
+
+ const init = async () => {
+ settings.searchEngine();
+ await sw.wispServer();
+ }
-
+ init();
document.addEventListener('astro:after-swap', async () => {
//const settings = await Settings.getInstance();
settings.theme();
diff --git a/src/components/ui/Button.astro b/src/components/ui/Button.astro
new file mode 100644
index 0000000..4d00732
--- /dev/null
+++ b/src/components/ui/Button.astro
@@ -0,0 +1,14 @@
+---
+import { Icon } from 'astro-icon/components';
+
+interface Props {
+ id: string;
+ text: string;
+ icon?: string
+}
+const { id, text, icon } = Astro.props;
+---
+
diff --git a/src/components/ui/Dropdown.astro b/src/components/ui/Dropdown.astro
index f4f01b5..b0a59e7 100644
--- a/src/components/ui/Dropdown.astro
+++ b/src/components/ui/Dropdown.astro
@@ -7,7 +7,7 @@ interface Props {
const { id, options } = Astro.props;
---
-