one-api/web/src/ui-component/Footer.js
Buer c1fc32add7
feat: add Midjourney (#138)
* 🚧 stash

*  feat: add Midjourney

* 📝 doc: update readme
2024-04-05 04:03:46 +08:00

39 lines
1.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// material-ui
import { Link, Container, Box } from '@mui/material';
import React from 'react';
import { useSelector } from 'react-redux';
// ==============================|| FOOTER - AUTHENTICATION 2 & 3 ||============================== //
const Footer = () => {
const siteInfo = useSelector((state) => state.siteInfo);
return (
<Container sx={{ display: 'flex', justifyContent: 'center', alignItems: 'center', height: '64px' }}>
<Box sx={{ textAlign: 'center' }}>
{siteInfo.footer_html ? (
<div className="custom-footer" dangerouslySetInnerHTML={{ __html: siteInfo.footer_html }}></div>
) : (
<>
<Link href="https://github.com/MartialBE/one-api" target="_blank">
{siteInfo.system_name} {process.env.REACT_APP_VERSION}{' '}
</Link>
{' '}
<Link href="https://github.com/MartialBE" target="_blank">
MartialBE
</Link>
开发基于
<Link href="https://github.com/songquanpeng" target="_blank">
JustSong
</Link>{' '}
One API源代码遵循
<Link href="https://opensource.org/licenses/mit-license.php"> MIT 协议</Link>
</>
)}
</Box>
</Container>
);
};
export default Footer;