Questions, Comments, or Concerns?
Questions, Comments, or Concerns?
Questions, Comments, or Concerns?
Fill out the form with any questions, comments, or concerns, and a team member will reach out to you directly.
Fill out the form with any questions, comments, or concerns, and a team member will reach out to you directly.
Fill out the form with any questions, comments, or concerns, and a team member will reach out to you directly.
import { useEffect, useState } from "react";
export function AgeVerificationOverlay() {
const [isVisible, setIsVisible] = useState(false);
useEffect(() => {
const lastVisit = localStorage.getItem("lastVisit");
const today = new Date().toDateString();
if (lastVisit !== today) {
setIsVisible(true);
localStorage.setItem("lastVisit", today);
}
}, []);
const handleYes = () => {
setIsVisible(false);
};
const handleNo = () => {
window.location.href = "/404";
};
return isVisible ? (
You must be 21+ to access this site.
) : null;
}