import * as React from "react"; import { FunctionComponent } from "react"; import { useTranslation } from "react-i18next"; import { CloseIcon } from "../Icons"; import RulesView from "./RulesView"; // The rules over the game page, so a player can look a rule up without leaving the game (R1.4). const RulesPanel: FunctionComponent<{ onClose: () => void }> = ({ onClose }) => { const { t } = useTranslation(); return (