2017-01-17 13:40:59 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* {{ properCase name }}
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
|
2017-09-26 17:12:20 +02:00
|
|
|
// Uncomment to use PropTypes
|
|
|
|
// import PropTypes from 'prop-types';
|
|
|
|
|
2017-01-17 13:40:59 +01:00
|
|
|
{{#if wantMessages}}
|
|
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
|
import messages from './messages';
|
|
|
|
{{/if}}
|
|
|
|
{{#if wantCSS}}
|
2017-05-10 14:45:32 +02:00
|
|
|
import styles from './styles.scss';
|
2017-01-17 13:40:59 +01:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
class {{ properCase name }} extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
{{#if wantCSS}}
|
|
|
|
<div className={{curly true}}styles.{{ camelCase name }}{{curly}}>
|
|
|
|
{{else}}
|
|
|
|
<div>
|
|
|
|
{{/if}}
|
|
|
|
{{#if wantMessages}}
|
|
|
|
<FormattedMessage {...messages.header} />
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-26 17:12:20 +02:00
|
|
|
// Uncomment to use PropTypes
|
|
|
|
// {{ properCase name }}.proptypes = {
|
|
|
|
// foo: PropTypes.string,
|
2017-11-06 18:15:53 +01:00
|
|
|
// };
|
2017-09-26 17:12:20 +02:00
|
|
|
|
2017-01-17 13:40:59 +01:00
|
|
|
export default {{ properCase name }};
|