import PageContainerContent from '../../page-container' import PropTypes from 'prop-types' import React, { Component } from 'react' export default class ProviderApproval extends Component { static propTypes = { approveProviderRequest: PropTypes.func, origin: PropTypes.string, rejectProviderRequest: PropTypes.func, }; static contextTypes = { t: PropTypes.func, }; render () { const { approveProviderRequest, origin, rejectProviderRequest } = this.props return ( {this.context.t('providerRequestInfo')}
{origin}
)} submitText={this.context.t('approve')} cancelText={this.context.t('reject')} onSubmit={() => { approveProviderRequest(origin) }} onCancel={() => { rejectProviderRequest(origin) }} onClose={() => { rejectProviderRequest(origin) }} /> ) } }