blob: 786fca0d83dce2fc5f19e7792bc199691c38f151 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import { FC } from 'react';
import { Meta, MetaData } from './meta';
export type PageFooterProps = {
/**
* Set additional classnames to the footer element.
*/
className?: string;
/**
* The footer metadata.
*/
meta?: MetaData;
};
/**
* PageFooter component
*
* Render a footer element to display page meta.
*/
export const PageFooter: FC<PageFooterProps> = ({ meta, ...props }) => {
return (
<footer {...props}>
{meta && <Meta data={meta} withSeparator={false} />}
</footer>
);
};
|