import * as React from 'react' import Icon from 'semantic-ui-react/dist/commonjs/elements/Icon' import { Button } from '../Button/Button' import { Header } from '../Header/Header' import { Props } from './NetworkAlert.types' import './NetworkAlert.css' export class NetworkAlert extends React.PureComponent { static defaultProps = { i18n: { title: 'Your wallet is connected to a partially supported network (Polygon)', content: ( Switch to Ethereum Mainnet if you want to use all the features of this app. Learn more ), action: 'Switch Network' } } render() { const { i18n, onSwitchNetwork } = this.props const { title, content, action } = i18n return (
{title}

{content}

) } }