2017-01-17 13:40:59 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* {{ properCase name }}
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
{{#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}}
|
|
|
|
|
2017-10-09 19:11:22 +02:00
|
|
|
function {{ properCase name}}() {
|
2017-01-17 13:40:59 +01:00
|
|
|
return (
|
|
|
|
{{#if wantCSS}}
|
|
|
|
<div className={{curly true}}styles.{{ camelCase name }}{{curly}}>
|
|
|
|
{{else}}
|
|
|
|
<div>
|
|
|
|
{{/if}}
|
|
|
|
{{#if wantMessages}}
|
|
|
|
<FormattedMessage {...messages.header} />
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2017-10-09 19:11:22 +02:00
|
|
|
{{ properCase name }}.proptypes = {
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2017-01-17 13:40:59 +01:00
|
|
|
export default {{ properCase name }};
|