summaryrefslogtreecommitdiff
path: root/src/Info.js
blob: c6b688d5ebbde00b9775f66d7f2b80db89db6e5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import React, { useState } from "react";

function Info(props) {
  const [open, setOpen] = useState(false);

  return (
    <div id="info">
      <div
        id="info-button"
        onClick={() => {
          setOpen(!open);
        }}
      >
        ?
      </div>
      <div id="info-modal" style={{ display: open ? "block" : "none" }}>
        This is the info page
      </div>
    </div>
  );
}

export default Info;