import type { ReactNode } from "react"; import { AppShellHeader, Group, UnstyledButton } from "@mantine/core"; import { Spotlight } from "@homarr/spotlight"; import { Link } from "@homarr/ui"; import { ClientBurger } from "./header/burger"; import { DesktopSearchInput, MobileSearchButton } from "./header/search"; import { ResponsiveUserButton } from "./header/responsive-user"; import { TourTarget } from "./header/tour-target"; import { UserButton } from "./header/user"; import { HomarrLogoWithTitle } from "./logo/homarr-logo"; interface Props { logo?: ReactNode; logoHref?: string | null; actions?: ReactNode; hasNavigation?: boolean; withSafeArea?: boolean; hideUserOnMobileBoard?: boolean; } export const MainHeader = ({ logo, logoHref = "/", actions, hasNavigation = true, withSafeArea = false, hideUserOnMobileBoard = false, }: Props) => { return ( {hasNavigation && } {logoHref === null ? ( (logo ?? ) ) : ( {logo ?? } )} {actions} ); };