summaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/header.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/organisms/layout/header.tsx')
-rw-r--r--src/components/organisms/layout/header.tsx48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/components/organisms/layout/header.tsx b/src/components/organisms/layout/header.tsx
new file mode 100644
index 0000000..f6212c3
--- /dev/null
+++ b/src/components/organisms/layout/header.tsx
@@ -0,0 +1,48 @@
+import Branding, {
+ type BrandingProps,
+} from '@components/molecules/layout/branding';
+import { FC } from 'react';
+import Toolbar, { type ToolbarProps } from '../toolbar/toolbar';
+import styles from './header.module.scss';
+
+export type HeaderProps = BrandingProps &
+ Pick<
+ ToolbarProps,
+ 'ackeeStorageKey' | 'motionStorageKey' | 'nav' | 'searchPage'
+ > & {
+ /**
+ * Set additional classnames to the header element.
+ */
+ className?: string;
+ };
+
+/**
+ * Header component
+ *
+ * Render the website header.
+ */
+const Header: FC<HeaderProps> = ({
+ ackeeStorageKey,
+ className,
+ motionStorageKey,
+ nav,
+ searchPage,
+ ...props
+}) => {
+ return (
+ <header className={`${styles.wrapper} ${className}`}>
+ <div className={styles.body}>
+ <Branding {...props} />
+ <Toolbar
+ ackeeStorageKey={ackeeStorageKey}
+ className={styles.toolbar}
+ motionStorageKey={motionStorageKey}
+ nav={nav}
+ searchPage={searchPage}
+ />
+ </div>
+ </header>
+ );
+};
+
+export default Header;