const FormattedMessage = require('react-intl').FormattedMessage; const injectIntl = require('react-intl').injectIntl; const intlShape = require('react-intl').intlShape; const React = require('react'); const FlexRow = require('../../components/flex-row/flex-row.jsx'); const bindAll = require('lodash.bindall'); const Steps = require('../../components/steps/steps.jsx'); const Step = require('../../components/steps/step.jsx'); const Page = require('../../components/page/www/page.jsx'); const render = require('../../lib/render.jsx'); const OS_ENUM = require('../../components/extension-landing/os-enum.js'); const OSChooser = require('../../components/os-chooser/os-chooser.jsx'); require('./download.scss'); require('../../components/forms/button.scss'); class Download extends React.Component { constructor (props) { super(props); bindAll(this, [ 'onSetOS' ]); let detectedOS = OS_ENUM.WINDOWS; if (window.navigator && window.navigator.platform) { if (window.navigator.platform === 'MacIntel') { detectedOS = OS_ENUM.MACOS; } } this.state = { OS: detectedOS }; } onSetOS (os) { this.setState({ OS: os }); } render () { return (

{this.props.intl.formatMessage({id:

Windows 10+ macOS 10.13+
{this.props.intl.formatMessage({id:

{this.state.OS === OS_ENUM.WINDOWS ? : }

); } } Download.propTypes = { intl: intlShape }; const WrappedDownload = injectIntl(Download); render(, document.getElementById('app'));