"use client"; import { Button, Icon } from "@chakra-ui/react"; import { FaBars } from "react-icons/fa6"; import { useConsentDialog } from "./useConsentDialog"; import { CONSENT_BUTTON_TOP_OFFSET, CONSENT_BUTTON_LEFT_OFFSET, CONSENT_BUTTON_Z_INDEX, CONSENT_DIALOG_TEXT, } from "./constants"; interface ConsentDialogButtonProps { meetingId: string; } export function ConsentDialogButton({ meetingId }: ConsentDialogButtonProps) { const { showConsentModal, consentState, hasConsent, consentLoading } = useConsentDialog(meetingId); if (!consentState.ready || hasConsent(meetingId) || consentLoading) { return null; } return ( ); }