mirror of
https://github.com/strapi/strapi.git
synced 2025-12-18 02:33:53 +00:00
29 lines
693 B
JavaScript
29 lines
693 B
JavaScript
/**
|
|
*
|
|
* LeftMenuFooter
|
|
*
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { defineMessages, FormattedMessage } from 'react-intl';
|
|
import { PropTypes } from 'prop-types';
|
|
|
|
import styles from './styles.scss';
|
|
import messages from './messages.json';
|
|
defineMessages(messages);
|
|
|
|
function LeftMenuFooter({ version }) { // eslint-disable-line react/prefer-stateless-function
|
|
return (
|
|
<div className={styles.leftMenuFooter}>
|
|
<FormattedMessage {...messages.poweredBy} />
|
|
<a href={`https://github.com/strapi/strapi/releases/tag/v${version}`} target="_blank">v{version}</a>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
LeftMenuFooter.propTypes = {
|
|
version: PropTypes.string.isRequired,
|
|
};
|
|
|
|
export default LeftMenuFooter;
|