blob: 375cbc402aa0740b8eeb7246974485e05963ae2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import type { FC } from 'react';
import { Footer, type FooterProps } from '../../atoms';
import { Meta, type MetaData } from './meta';
export type PageFooterProps = Omit<FooterProps, 'children'> & {
/**
* The footer metadata.
*/
meta?: MetaData;
};
/**
* PageFooter component
*
* Render a footer to display page meta.
*/
export const PageFooter: FC<PageFooterProps> = ({ meta, ...props }) => (
<Footer {...props}>{meta ? <Meta data={meta} /> : null}</Footer>
);
|