2020-03-05 12:18:33 +03:00
|
|
|
import React from 'react';
|
2020-03-05 13:11:26 +03:00
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import classNames from 'classnames';
|
2020-03-05 12:18:33 +03:00
|
|
|
import { serverType } from '../servers/prop-types';
|
|
|
|
|
|
|
|
const propTypes = {
|
|
|
|
selectedServer: serverType,
|
2020-03-05 13:11:26 +03:00
|
|
|
className: PropTypes.string,
|
2020-03-05 12:18:33 +03:00
|
|
|
};
|
|
|
|
|
2020-03-05 13:11:26 +03:00
|
|
|
const ShlinkVersions = ({ selectedServer, className }) => {
|
|
|
|
const { printableVersion } = selectedServer;
|
2020-03-05 12:18:33 +03:00
|
|
|
|
2020-03-05 13:11:26 +03:00
|
|
|
return <small className={classNames('text-muted', className)}>Client: v2.3.1 / Server: {printableVersion}</small>;
|
2020-03-05 12:18:33 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
ShlinkVersions.propTypes = propTypes;
|
|
|
|
|
|
|
|
export default ShlinkVersions;
|