-
Notifications
You must be signed in to change notification settings - Fork 12
/
Footer.jsx
27 lines (25 loc) · 869 Bytes
/
Footer.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import React from 'react';
import { Divider } from '@mui/material';
import { Copyright as CopyrightIcon } from '@mui/icons-material';
import { get } from 'lodash';
import {
getAppliedServerConfig
} from '../../common/utils';
import AppVersions from './AppVersions';
const DEFAULT_FOOTER_TEXT = `${new Date().getFullYear()} Open Concept Lab`;
const Footer = () => {
const text = get(getAppliedServerConfig(), 'info.site.footerText', DEFAULT_FOOTER_TEXT);
const isDefault = text === DEFAULT_FOOTER_TEXT;
return (
<footer className='col-sm-12 footer-container flex-vertical-center'>
{
isDefault &&
<CopyrightIcon fontSize='small'/>
}
<span className='footer-company'>{text}</span>
<Divider orientation='vertical' className='footer-divider-vertical' />
<AppVersions />
</footer>
);
}
export default Footer;