aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout/footer/footer.tsx
blob: deb3956e39c8977588bf7549bcff00eaab2259c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);