From 7b9b5c2368ecff5b083b171cf38ce914746284ac Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Sat, 9 Apr 2022 19:39:11 +0200
Subject: chore: add a Main component

---
 src/components/atoms/layout/main.tsx | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 src/components/atoms/layout/main.tsx

(limited to 'src/components/atoms/layout/main.tsx')

diff --git a/src/components/atoms/layout/main.tsx b/src/components/atoms/layout/main.tsx
new file mode 100644
index 0000000..4549328
--- /dev/null
+++ b/src/components/atoms/layout/main.tsx
@@ -0,0 +1,23 @@
+import { FC } from 'react';
+
+export type MainProps = {
+  /**
+   * Set additional classnames to the main element.
+   */
+  className?: string;
+  /**
+   * The main wrapper id.
+   */
+  id: string;
+};
+
+/**
+ * Main component
+ *
+ * Render a main element.
+ */
+const Main: FC<MainProps> = ({ children, ...props }) => {
+  return <main {...props}>{children}</main>;
+};
+
+export default Main;
-- 
cgit v1.2.3

