import React, { Component } from "react"; import { FormattedMessage } from "react-intl"; import DialogContainer from "./dialog-container.js"; import { AudioContext } from "../AudioContext"; export default class HelpDialog extends Component { render() { return ( <DialogContainer title="Getting Started" {...this.props}> <div className="info-dialog__help"> <p>When in a room, other avatars can see and hear you.</p> <p> Use your controller's action button to teleport from place to place. If it has a trigger, use it to pick up objects. </p> <p> In VR, <b>look up</b> to find your menu. </p> <p> The <b>Mic Toggle</b> mutes your mic. </p> <p> The <b>Pause/Resume Toggle</b> pauses all other avatars and lets you block others or remove objects. </p> <AudioContext.Consumer> {audio => ( <p className="dialog__box__contents__links"> <a target="_blank" rel="noopener noreferrer" href="https://github.com/mozilla/hubs/blob/master/TERMS.md" onMouseEnter={audio.onMouseEnter} onMouseLeave={audio.onMouseLeave} > <FormattedMessage id="profile.terms_of_use" /> </a> <a target="_blank" rel="noopener noreferrer" href="https://github.com/mozilla/hubs/blob/master/PRIVACY.md" onMouseEnter={audio.onMouseEnter} onMouseLeave={audio.onMouseLeave} > <FormattedMessage id="profile.privacy_notice" /> </a> <a target="_blank" rel="noopener noreferrer" href="/?report" onMouseEnter={audio.onMouseEnter} onMouseLeave={audio.onMouseLeave} > <FormattedMessage id="help.report_issue" /> </a> </p> )} </AudioContext.Consumer> </div> </DialogContainer> ); } }