mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-18 01:26:37 +08:00
42 lines
1.1 KiB
JavaScript
42 lines
1.1 KiB
JavaScript
import React from 'react';
|
||
|
||
import { Container, Segment } from 'semantic-ui-react';
|
||
import { getFooterHTML, getSystemName } from '../helpers';
|
||
|
||
const Footer = () => {
|
||
const systemName = getSystemName();
|
||
const footer = getFooterHTML();
|
||
|
||
return (
|
||
<Segment vertical>
|
||
<Container textAlign='center'>
|
||
{footer ? (
|
||
<div
|
||
className='custom-footer'
|
||
dangerouslySetInnerHTML={{ __html: footer }}
|
||
></div>
|
||
) : (
|
||
<div className='custom-footer'>
|
||
<a
|
||
href='https://github.com/songquanpeng/one-api'
|
||
target='_blank'
|
||
>
|
||
{systemName} {process.env.REACT_APP_VERSION}{' '}
|
||
</a>
|
||
由{' '}
|
||
<a href='https://github.com/songquanpeng' target='_blank'>
|
||
JustSong
|
||
</a>{' '}
|
||
构建,源代码遵循{' '}
|
||
<a href='https://opensource.org/licenses/mit-license.php'>
|
||
MIT 协议
|
||
</a>
|
||
</div>
|
||
)}
|
||
</Container>
|
||
</Segment>
|
||
);
|
||
};
|
||
|
||
export default Footer;
|