Skip to content

Commit

Permalink
feat: add footer button to open menu
Browse files Browse the repository at this point in the history
  • Loading branch information
rikhall1515 committed May 5, 2024
1 parent f2a46fc commit 833d244
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions components/footer/btnCookie.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"use client";
import { memo } from "react";

import { Button } from "@/components/ui/button";
import { useCookieContext } from "@/context/cookie";

function ButtonCookie() {
const { toggleChangeConsentMenu } = useCookieContext();
return (
<>
<Button
asChild
variant="link"
onClick={() => toggleChangeConsentMenu()}
className="h-fit p-0 text-foreground"
>
<span>Privacy Settings</span>
</Button>
</>
);
}

export default memo(ButtonCookie);

0 comments on commit 833d244

Please sign in to comment.