import { useState } from "react"; import { Dialog } from "@headlessui/react"; import { Button } from "./Button/Button"; import Typography from "components/typography/Typography"; export function BottomSheetBar() { // The open/closed state lives outside of the Dialog and is managed by you let [isOpen, setIsOpen] = useState(true); function handleDeactivate() { alert("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"); } return ( /* Pass `isOpen` to the `open` prop, and use `onClose` to set the state back to `false` when the user clicks outside of the dialog or presses the escape key. */ {}} className="absolute bottom-0 bg-blue-900 text-white w-full" > By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. {/* You can render additional buttons to dismiss your dialog by setting `isOpen` to `false`. */}
); }