aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout/footer/footer.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/atoms/layout/footer/footer.tsx')
-rw-r--r--src/components/atoms/layout/footer/footer.tsx23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/components/atoms/layout/footer/footer.tsx b/src/components/atoms/layout/footer/footer.tsx
new file mode 100644
index 0000000..deb3956
--- /dev/null
+++ b/src/components/atoms/layout/footer/footer.tsx
@@ -0,0 +1,23 @@
+import {
+ type ForwardRefRenderFunction,
+ type HTMLAttributes,
+ type ReactNode,
+ forwardRef,
+} from 'react';
+
+export type FooterProps = HTMLAttributes<HTMLElement> & {
+ /**
+ * The footer contents.
+ */
+ children: ReactNode;
+};
+
+const FooterWithRef: ForwardRefRenderFunction<HTMLElement, FooterProps> = (
+ props,
+ ref
+) => <footer {...props} ref={ref} />;
+
+/**
+ * Footer component.
+ */
+export const Footer = forwardRef(FooterWithRef);