TypeScript 93.3%
JavaScript 4.4%
CSS 2.3%
1/**2 * Author: Simon-Pierre Boucher3 * Contact: contact@spboucher.ai4 * Project: Hilmacorp.ai — Web Platform5 * File: components/ManageCookiesButton.tsx6 * Description: Button that reopens the cookie consent banner (dispatches the preferences event)7 */89"use client";1011import { COOKIE_PREFERENCES_EVENT } from "@/components/CookieConsent";1213export default function ManageCookiesButton({14 label,15 className = "",16}: {17 label: string;18 className?: string;19}) {20 return (21 <button22 type="button"23 onClick={() => window.dispatchEvent(new Event(COOKIE_PREFERENCES_EVENT))}24 className={className}25 >26 {label}27 </button>28 );29}30