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, }; static contextTypes = { t: PropTypes.func, }; onCancel = () => { const { origin, rejectProviderRequest } = this.props rejectProviderRequest(origin) } onSubmit = () => { const { approveProviderRequest, origin } = this.props approveProviderRequest(origin) } render () { const {origin, siteImage, siteTitle} = this.props return (