/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ import * as React from 'react' import { StyledWrapper, StyledTitle, StyledOff, StyledText, StyledLink, StyledTitleWrapper } from './style' import { getLocale } from '../../../helpers' export interface Props { testId?: string isPrivate?: boolean onLinkOpen: () => void } export default class DisabledPanel extends React.PureComponent { render () { const { testId, isPrivate, onLinkOpen } = this.props return ( {getLocale('disabledPanelTitle')} {getLocale('disabledPanelOff')} {isPrivate ? getLocale('disabledPanelPrivateText') : getLocale('disabledPanelText')} {isPrivate ? getLocale('learnMore') : getLocale('disabledPanelSettings')} ) } }