import PropTypes from 'prop-types' import React, {PureComponent} from 'react' import { ProviderPageContainerContent, ProviderPageContainerHeader } from './' import { PageContainerFooter } from '../page-container' export default class ProviderPageContainer extends PureComponent { static propTypes = { approveProviderRequest: PropTypes.func.isRequired, origin: PropTypes.string.isRequired, rejectProviderRequest: PropTypes.func.isRequired, siteImage: PropTypes.string, siteTitle: PropTypes.string.isRequired, tabID: PropTypes.string.isRequired, }; static contextTypes = { t: PropTypes.func, }; onCancel = () => { const { tabID, rejectProviderRequest } = this.props rejectProviderRequest(tabID) } onSubmit = () => { const { approveProviderRequest, tabID } = this.props approveProviderRequest(tabID) } render () { const {origin, siteImage, siteTitle} = this.props return (