import React from "react"; import PauseButton from "./PauseButton"; import { Options } from "../Options"; import { OptionsType } from "../types/options"; import ScoreNumber from "./ScoreNumber"; import MuteButton from "./MuteButton"; export default function Topbar() { const options: OptionsType = Options.getInstance().get(); return (
{typeof options.pauseCallback !== "undefined" && typeof options.resumeCallback !== "undefined" ? ( ) : (
)} {typeof options.muteCallback !== "undefined" && typeof options.unmuteCallback !== "undefined" ? ( ) : (
)}
); }