mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 09:00:19 +00:00
33 lines
550 B
Handlebars
33 lines
550 B
Handlebars
![]() |
/**
|
||
|
*
|
||
|
* {{ properCase name }}
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
import React from 'react';
|
||
|
|
||
|
{{#if wantMessages}}
|
||
|
import { FormattedMessage } from 'react-intl';
|
||
|
import messages from './messages';
|
||
|
{{/if}}
|
||
|
|
||
|
{{#if wantCSS}}
|
||
|
import styles from './styles.css';
|
||
|
{{/if}}
|
||
|
|
||
|
function {{ properCase name }}() {
|
||
|
return (
|
||
|
{{#if wantCSS}}
|
||
|
<div className={{curly true}}styles.{{ camelCase name }}{{curly}}>
|
||
|
{{else}}
|
||
|
<div>
|
||
|
{{/if}}
|
||
|
{{#if wantMessages}}
|
||
|
<FormattedMessage {...messages.header} />
|
||
|
{{/if}}
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default {{ properCase name }};
|