2016-08-26 15:32:44 +02:00
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* LeftMenuFooter
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2017-09-26 16:36:28 +02:00
|
|
|
import React from 'react';
|
2017-08-14 15:22:42 +02:00
|
|
|
import { defineMessages, FormattedMessage } from 'react-intl';
|
2018-04-12 23:45:17 +02:00
|
|
|
import { PropTypes } from 'prop-types';
|
2017-08-18 14:17:15 +02:00
|
|
|
|
2019-01-10 16:11:58 +01:00
|
|
|
import LeftMenuLink from 'components/LeftMenuLink';
|
|
|
|
|
|
2017-08-18 14:17:15 +02:00
|
|
|
import styles from './styles.scss';
|
2016-10-13 20:53:33 +02:00
|
|
|
import messages from './messages.json';
|
2017-08-14 15:22:42 +02:00
|
|
|
defineMessages(messages);
|
2016-08-26 15:32:44 +02:00
|
|
|
|
2018-04-12 23:45:17 +02:00
|
|
|
function LeftMenuFooter({ version }) { // eslint-disable-line react/prefer-stateless-function
|
|
|
|
|
return (
|
|
|
|
|
<div className={styles.leftMenuFooter}>
|
2019-01-10 16:11:58 +01:00
|
|
|
<ul className={styles.list}>
|
|
|
|
|
<LeftMenuLink
|
|
|
|
|
icon="book"
|
|
|
|
|
label={messages.documentation.id}
|
|
|
|
|
destination="https://strapi.io/documentation"
|
|
|
|
|
/>
|
|
|
|
|
<LeftMenuLink
|
|
|
|
|
icon="question-circle"
|
|
|
|
|
label={messages.help.id}
|
|
|
|
|
destination="https://strapi.io/help"
|
|
|
|
|
/>
|
|
|
|
|
</ul>
|
|
|
|
|
<div className={styles.poweredBy}>
|
|
|
|
|
<FormattedMessage {...messages.poweredBy} />
|
2019-01-10 16:41:13 +01:00
|
|
|
<a href="https://strapi.io" target="_blank">Strapi</a> <a href={`https://github.com/strapi/strapi/releases/tag/v${version}`} target="_blank">v{version}</a>
|
2019-01-10 16:11:58 +01:00
|
|
|
</div>
|
2018-04-12 23:45:17 +02:00
|
|
|
</div>
|
|
|
|
|
);
|
2016-08-26 15:32:44 +02:00
|
|
|
}
|
|
|
|
|
|
2018-04-12 23:45:17 +02:00
|
|
|
LeftMenuFooter.propTypes = {
|
|
|
|
|
version: PropTypes.string.isRequired,
|
|
|
|
|
};
|
|
|
|
|
|
2016-08-26 15:32:44 +02:00
|
|
|
export default LeftMenuFooter;
|