17 lines
397 B
TypeScript
17 lines
397 B
TypeScript
import { cn } from "@/lib/utils";
|
|
import { useCookieNoticeOpen } from "@/store/use-cookie-notice-store";
|
|
|
|
export default function CookieNoticeLink({
|
|
className,
|
|
label = "Gestion des cookies",
|
|
}: {
|
|
className?: string;
|
|
label?: string;
|
|
}) {
|
|
const open = useCookieNoticeOpen();
|
|
return (
|
|
<button type="button" onClick={open} className={cn(className)}>
|
|
{label}
|
|
</button>
|
|
);
|
|
}
|