Skip to content
InfoSidebar.tsx 973 B
Newer Older
import { useAppContext } from "../../contexts/AppContext";
Ategon Dev's avatar
Ategon Dev committed
import { InfoText } from "./InfoText";
import { InfoButtons } from "./InfoButtons";
Ategon Dev's avatar
Ategon Dev committed
import { SidebarBase } from "../SidebarBase";
import { faInfoCircle } from "@fortawesome/free-solid-svg-icons";

/**
 * Information sidebar
 *
 * TODO: add customization for this post-event (#46)
 *
 * @returns
 */
export const InfoSidebar = () => {
  const { infoSidebar, setInfoSidebar } = useAppContext();

  return (
Ategon Dev's avatar
Ategon Dev committed
    <SidebarBase shown={infoSidebar} setSidebarShown={setInfoSidebar} icon={faInfoCircle} title="Info" description="Information about the event" side="Left">
      <div className="flex flex-col h-full justify-between">
Ategon Dev's avatar
Ategon Dev committed
        <div>
          <InfoButtons />
          <InfoText />
        </div>
Ategon Dev's avatar
Ategon Dev committed
        <div className="p-2">
          <p className="text-xs text-default-600">Build {__COMMIT_HASH__}</p>
          <div id="grecaptcha-badge"></div>
        </div>
Ategon Dev's avatar
Ategon Dev committed
      </div>
      
    </SidebarBase>
  )
};