Initial commit
Build / run (push) Has been cancelled

This commit is contained in:
maher
2026-05-14 13:42:10 +02:00
commit 511fad8199
4595 changed files with 385164 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import {Avatar, AvatarProps} from '@common/ui/images/avatar';
import {User} from '@common/auth/user';
import {useContext} from 'react';
import {SiteConfigContext} from '@common/core/settings/site-config-context';
interface UserAvatarProps extends Omit<AvatarProps, 'label' | 'src' | 'link'> {
user?: User;
}
export function UserAvatar({user, ...props}: UserAvatarProps) {
const {auth} = useContext(SiteConfigContext);
return (
<Avatar
{...props}
label={user?.display_name}
src={user?.avatar}
link={user?.id && auth.getUserProfileLink?.(user)}
/>
);
}