From 2b51960da1bd907f5855869d3eee53565ca7cbfc Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Thu, 21 Apr 2022 16:53:26 +0200
Subject: chore: add a PageFooter component

---
 src/components/molecules/layout/page-footer.tsx | 26 +++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 src/components/molecules/layout/page-footer.tsx

(limited to 'src/components/molecules/layout/page-footer.tsx')

diff --git a/src/components/molecules/layout/page-footer.tsx b/src/components/molecules/layout/page-footer.tsx
new file mode 100644
index 0000000..f522482
--- /dev/null
+++ b/src/components/molecules/layout/page-footer.tsx
@@ -0,0 +1,26 @@
+import { FC } from 'react';
+import Meta, { type MetaMap } from './meta';
+
+export type PageFooterProps = {
+  /**
+   * Set additional classnames to the footer element.
+   */
+  className?: string;
+  /**
+   * The footer metadata.
+   */
+  meta?: MetaMap;
+};
+
+/**
+ * PageFooter component
+ *
+ * Render a footer element to display page meta.
+ */
+const PageFooter: FC<PageFooterProps> = ({ meta, ...props }) => {
+  return (
+    <footer {...props}>{meta && <Meta data={meta} layout="column" />}</footer>
+  );
+};
+
+export default PageFooter;
-- 
cgit v1.2.3

