summaryrefslogtreecommitdiffstats
path: root/src/components/molecules/layout/page-footer.tsx
blob: 97e449f64cd6d45714aa75e18032b60fef8130d7 (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
27
28
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.
 */
const PageFooter: FC<PageFooterProps> = ({ meta, ...props }) => {
  return (
    <footer {...props}>
      {meta && <Meta data={meta} withSeparator={false} />}
    </footer>
  );
};

export default PageFooter;