owncast/web/components/ui/Footer/Footer.tsx

14 lines
481 B
TypeScript
Raw Normal View History

import { useRecoilValue } from 'recoil';
import { clientConfigState } from '../../stores/ClientConfigStore';
import { ClientConfig } from '../../../interfaces/client-config.model';
import { Layout } from 'antd';
const { Footer } = Layout;
export default function FooterComponent() {
const clientConfig = useRecoilValue<ClientConfig>(clientConfigState);
const { version } = clientConfig;
return <Footer style={{ textAlign: 'center' }}>Footer: Owncast {version}</Footer>;
}