blob: a93fced43def5fda1c844c4627480c58ce5075a1 (
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 { MetaList, type MetaItemData } from '../meta-list';
export type PageFooterProps = Omit<FooterProps, 'children'> & {
/**
* The footer metadata.
*/
meta?: MetaItemData[];
};
/**
* PageFooter component
*
* Render a footer to display page meta.
*/
export const PageFooter: FC<PageFooterProps> = ({ meta, ...props }) => (
<Footer {...props}>
{meta ? <MetaList hasInlinedValues items={meta} /> : null}
</Footer>
);
|