import { Group, Image, Text } from '@mantine/core'; import { useScreenLargerThan } from '~/hooks/useScreenLargerThan'; import { useConfigContext } from '~/config/provider'; import { usePrimaryGradient } from './useGradient'; interface LogoProps { size?: 'md' | 'xs'; withoutText?: boolean; } export function Logo({ size = 'md', withoutText = false }: LogoProps) { const { config } = useConfigContext(); const primaryGradient = usePrimaryGradient(); const largerThanMd = useScreenLargerThan('md'); return ( Homarr Logo {withoutText || !largerThanMd ? null : ( {config?.settings.customization.pageTitle || 'Homarr'} )} ); }