shlink-web-client/src/common/ShlinkVersions.js

17 lines
338 B
JavaScript
Raw Normal View History

2020-03-05 12:18:33 +03:00
import React from 'react';
import { serverType } from '../servers/prop-types';
const propTypes = {
selectedServer: serverType,
};
const ShlinkVersions = ({ selectedServer }) => {
const { version } = selectedServer;
return <span>Server: v{version}</span>;
};
ShlinkVersions.propTypes = propTypes;
export default ShlinkVersions;