Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

1.3 KB
Raw Blame
import { FC } from 'react';
import { useAtomValue } from 'jotai';
import { useTranslation } from 'next-export-i18n';
import styles from './Footer.module.scss';
import { serverStatusState } from '../../stores/ClientConfigStore';
import { Localization } from '../../../types';
import Translation from '../Translation/Translation';

export const Footer: FC = () => {
  const clientStatus = useAtomValue(serverStatusState);
  const { versionNumber } = clientStatus;
  const { t } = useTranslation();
  return (
    <footer className={styles.footer} id="footer">
      <span id="owncast-powered-by-text">
        <Translation
          translationKey={Localization.Common.poweredByOwncastVersion}
          vars={{ versionNumber }}
          defaultText="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">
          {t(Localization.Frontend.Footer.documentation)}
        </a>
        <a href="https://owncast.online/help" target="_blank" rel="noreferrer">
          {t(Localization.Frontend.Footer.contribute)}
        </a>
        <a href="https://github.com/owncast/owncast" target="_blank" rel="noreferrer">
          {t(Localization.Frontend.Footer.source)}
        </a>
      </span>
    </footer>
  );
};