Cooki - korekta mail

This commit is contained in:
dm
2025-12-17 17:00:48 +01:00
parent 0203e95cfc
commit 6908cbd287
3 changed files with 13 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
import { useEffect, useState } from "preact/hooks";
// import "../styles/cookie.css";
import Markdown from "./Markdown.jsx";
export default function Cookie({ config }) {
const [visible, setVisible] = useState(false);
@@ -29,13 +29,7 @@ export default function Cookie({ config }) {
>
<div class="f-cookie-panel-inner">
<p class="f-cookie-text">
{config.text.message}
<a href={config.links.privacy} rel="noopener noreferrer">
{config.text.more}
</a>
</p>
<Markdown text={config.text.message} />
<div class="flex gap-3 shrink-0">
<button onClick={() => handle("accepted")} class="f-cookie-accept">
{config.text.accept}