/* 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 { StyledContent, StyledGrid, StyledOneColumn, StyledTwoColumn, StyledIcon } from './style' import { AdsMegaphoneIcon, RewardsActivateIcon, RewardsSendTipsIcon } from '../../../components/icons' export type Type = 'ads' | 'contribute' | 'donation' export interface Props { children: React.ReactNode id?: string type?: Type } export default class DisabledContent extends React.PureComponent { getIcon = (type?: Type) => { let icon = null switch (type) { case 'ads': icon = break case 'contribute': icon = break case 'donation': icon = break } return ( {icon} ) } render () { const { id, children, type } = this.props return (
{this.getIcon(type)} {children}
) } }