restructured components folders and layout (#1886)
This commit is contained in:
0
web/components/ui/Footer/Footer.module.scss
Normal file
0
web/components/ui/Footer/Footer.module.scss
Normal file
13
web/components/ui/Footer/Footer.tsx
Normal file
13
web/components/ui/Footer/Footer.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
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>;
|
||||
}
|
||||
1
web/components/ui/Footer/index.ts
Normal file
1
web/components/ui/Footer/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from './Footer';
|
||||
Reference in New Issue
Block a user