import React, { forwardRef } from "react"; import { BaseComponentProps } from "../../types"; import { Button } from "../ui/Button"; export interface HeaderProps extends BaseComponentProps { logo?: React.ReactNode; navigation?: Array<{ label: string; href?: string; onClick?: () => void; }>; actions?: React.ReactNode; sticky?: boolean; } export const Header = forwardRef( ( { className = "", logo, navigation = [], actions, sticky = false, children, ...props }, ref ) => { const stickyClasses = sticky ? "sticky top-0 z-50" : ""; return (
{/* Logo */}
{logo || (
Logo
)}
{/* Navigation */} {navigation.length > 0 && ( )} {/* Actions */}
{actions || ( )}
{children}
); } ); Header.displayName = "Header";