import { forwardRef, type HTMLAttributes, type ReactNode } from 'react'; import clsx from 'clsx'; import { PageContainer } from '../Layout/index.js'; import styles from './styles.module.css'; export type SiteHeaderProps = Omit, 'children'> & { brand: ReactNode; mobileAction?: ReactNode; navigation?: ReactNode; actions?: ReactNode; position?: 'sticky' | 'fixed' | 'static'; width?: number; fullWidth?: boolean; }; export const SiteHeader = forwardRef(function SiteHeader( { brand, mobileAction, navigation, actions, position = 'sticky', width, fullWidth = false, className, ...props }, ref ) { return (
{mobileAction != null && (
{mobileAction}
)}
{brand}
{navigation != null && (
{navigation}
)} {actions != null && (
{actions}
)}
); }); export default SiteHeader;