2022-09-07 10:00:28 +03:00
|
|
|
import { FC } from 'react';
|
2023-05-18 22:13:26 +03:00
|
|
|
import { useRecoilValue } from 'recoil';
|
2022-09-07 10:00:28 +03:00
|
|
|
import styles from './Footer.module.scss';
|
2023-05-18 22:13:26 +03:00
|
|
|
import { ServerStatus } from '../../../interfaces/server-status.model';
|
|
|
|
import { serverStatusState } from '../../stores/ClientConfigStore';
|
2022-04-28 19:54:33 +03:00
|
|
|
|
2023-07-10 00:07:35 +03:00
|
|
|
export const Footer: FC = () => {
|
2023-05-18 22:13:26 +03:00
|
|
|
const clientStatus = useRecoilValue<ServerStatus>(serverStatusState);
|
|
|
|
const { versionNumber } = clientStatus;
|
|
|
|
return (
|
2023-07-10 00:07:35 +03:00
|
|
|
<footer className={styles.footer} id="footer">
|
2023-05-18 22:13:26 +03:00
|
|
|
<span>
|
|
|
|
Powered by <a href="https://owncast.online">Owncast v{versionNumber}</a>
|
|
|
|
</span>
|
|
|
|
<span className={styles.links}>
|
|
|
|
<a href="https://owncast.online/docs" target="_blank" rel="noreferrer">
|
|
|
|
Documentation
|
|
|
|
</a>
|
|
|
|
<a href="https://owncast.online/help" target="_blank" rel="noreferrer">
|
|
|
|
Contribute
|
|
|
|
</a>
|
|
|
|
<a href="https://github.com/owncast/owncast" target="_blank" rel="noreferrer">
|
|
|
|
Source
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</footer>
|
|
|
|
);
|
|
|
|
};
|