blob: 5f3b176cfe9de7db2830520175cb541ab3db97fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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} withSeparator={false} /> : null}
</Footer>
);
|