import * as React from 'react'; import CloseButton from '/components/close-button'; import {CLOSE_BUTTON_IMAGE} from '/constants'; export interface OverlayMenuProps { hiddenMenu: boolean, setHiddenMenu: (c: boolean) => void, emulationStarted: boolean, setHiddenFormSelectFiles: (c: boolean) => void, }; interface Style { [id: string]: string; }; export default function OverlayMenu({hiddenMenu, setHiddenMenu, emulationStarted, setHiddenFormSelectFiles}: OverlayMenuProps) { function exitMenu() { setHiddenMenu(true); } function openSelectFilesMenu() { setHiddenFormSelectFiles(false); } const styleSelectRom: Style = {}; if (emulationStarted) { styleSelectRom.display = 'none'; } const styleMenu: Style = {}; if (hiddenMenu) { styleMenu.display = 'none'; } return (
); }