diff --git a/islands/CookieNotice.tsx b/islands/CookieNotice.tsx index 537f809..1081118 100644 --- a/islands/CookieNotice.tsx +++ b/islands/CookieNotice.tsx @@ -1,5 +1,7 @@ import { IS_BROWSER } from "$fresh/runtime.ts"; +import { useComputed } from "@preact/signals"; +import { Presence } from "../components/Presence.tsx"; import { storedBoolean } from "../lib/stored_signals.tsx"; const hide = storedBoolean(false, "hide-cookie-notice"); @@ -8,23 +10,28 @@ export function CookieNotice() { if (!IS_BROWSER) { return null; } - if (hide.value) { - return null; - } return ( -
-
-
- We make use of cookies to collect anonymous usage statistics that help - us improve the project. + !hide.value)}> +
+
+
+ We make use of cookies to collect anonymous usage statistics that + help us improve the project. +
+
-
-
+ ); }