This commit is contained in:
yohlo
2025-08-20 22:35:40 -05:00
commit f51c278cd3
169 changed files with 8173 additions and 0 deletions

15
src/components/avatar.tsx Normal file
View File

@@ -0,0 +1,15 @@
import { Avatar as MantineAvatar, AvatarProps as MantineAvatarProps, Paper } from '@mantine/core';
interface AvatarProps extends Omit<MantineAvatarProps, 'radius' | 'color' | 'size'> {
name: string;
size?: number;
radius?: string | number;
}
const Avatar = ({ name, size = 35, radius = '100%', ...props }: AvatarProps) => {
return <Paper p={size / 20} radius={radius} withBorder>
<MantineAvatar alt={name} key={name} name={name} color='initials' size={size} radius={radius} {...props} />
</Paper>
}
export default Avatar;