Files
emaui/libs/ui/src/lib/layout/BrandAvatar.tsx
2026-06-17 13:50:20 +03:00

31 lines
590 B
TypeScript

import { Box, useMantineTheme } from '@mantine/core';
export function BrandAvatar({
initials = '?',
size = 38,
}: {
initials?: string;
size?: number;
}) {
const theme = useMantineTheme();
return (
<Box
w={size}
h={size}
style={{
borderRadius: '50%',
background: theme.other.heroGradient as string,
color: '#fff',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
fontSize: size * 0.36,
fontWeight: 700,
flexShrink: 0,
}}
>
{initials}
</Box>
);
}