github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/build-blockchain-insurance-app-master/web/src/police/components/App.js (about) 1 'use strict'; 2 3 import React from 'react'; 4 import PropTypes from 'prop-types'; 5 import { FormattedMessage } from 'react-intl'; 6 import { withRouter } from 'react-router-dom'; 7 8 const app = ({ children }) => { 9 return ( 10 <div> 11 <div className='ibm-columns'> 12 <div className='ibm-col-1-1'> 13 <h2 className='ibm-h2'> 14 <FormattedMessage id='Police' /> 15 </h2> 16 </div> 17 </div> 18 <div> 19 {children} 20 </div> 21 </div> 22 ); 23 }; 24 25 app.propTypes = { 26 children: PropTypes.element.isRequired 27 }; 28 29 export default withRouter(app);