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 { UserButton } from "./header/user"; import { HomarrLogoWithTitle } from "./logo/homarr-logo"; interface Props { logo?: ReactNode; actions?: ReactNode; hasNavigation?: boolean; } export const MainHeader = ({ logo, actions, hasNavigation = true }: Props) => { return ( {hasNavigation && } {logo ?? } {actions} ); };