"use client"; import { useSettings } from "@homarr/settings"; import type { LogoWithTitleProps } from "./logo"; import { Logo, LogoWithTitle } from "./logo"; import { homarrLogoPath } from "./constants"; interface LogoProps { size: number; } const useBrandLogo = () => { const { branding } = useSettings(); const configuredLogoUrl = branding.logoImageUrl?.trim(); return { title: branding.appName, image: { src: configuredLogoUrl || homarrLogoPath, alt: `${branding.appName} logo`, shouldUseNextImage: !configuredLogoUrl, }, }; }; export const HomarrLogo = ({ size }: LogoProps) => { const brand = useBrandLogo(); return ; }; interface CommonLogoWithTitleProps { size: LogoWithTitleProps["size"]; hideTitleOnMobile?: boolean; } export const HomarrLogoWithTitle = ({ size, hideTitleOnMobile }: CommonLogoWithTitleProps) => { const brand = useBrandLogo(); return ; };