import React, { useEffect, useRef } from "react"; import { useAppContext } from "../contexts/AppContext"; import { Button } from "@nextui-org/react"; /** * *oh god the terrible code* * * not sure of another clean way to do this * * This is used to show details about the event, immediately on page load * * used by the canvas preview page to get people hyped up for the event (<7 days before) */ export const EventInfoOverlay = ({ children }: React.PropsWithChildren) => { const { setInfoSidebar, setSettingsSidebar } = useAppContext(); return (