/* @flow */ import React, { Component } from 'react'; import { Platform } from '../../base/react'; import { CHROME, FIREFOX, IE, SAFARI } from './browserLinks'; import HideNotificationBarStyle from './HideNotificationBarStyle'; /** * Describes styles namespace for this component. * * @type {string} */ const NS = 'unsupported-desktop-browser'; /** * React component representing unsupported browser page. * * @class UnsupportedDesktopBrowser */ export default class UnsupportedDesktopBrowser extends Component { /** * Renders the component. * * @returns {ReactElement} */ render() { return (
); } /** * Depending on the platform returns the link to IE browser. * * @returns {ReactElement|null} * @private */ _showIELinkIfRequired() { if (Platform.OS === 'windows') { return ( IE ); } return null; } /** * Depending on the platform returns the link to Safari browser. * * @returns {ReactElement|null} * @private */ _showSafariLinkIfRequired() { if (Platform.OS === 'mac') { return ( Safari ); } return null; } }