dont use image for unknown player
All checks were successful
deploy / deploy (push) Successful in 53s
All checks were successful
deploy / deploy (push) Successful in 53s
This commit is contained in:
13
src/components/UnknownAvatar.tsx
Normal file
13
src/components/UnknownAvatar.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
type UnknownAvatarProps = {
|
||||
size?: number;
|
||||
};
|
||||
|
||||
export default function UnknownAvatar({ size = 150 }: UnknownAvatarProps) {
|
||||
return (
|
||||
<div
|
||||
className={`mb-4 mt-2 flex h-[${size}px] w-[${size}px] items-center justify-center rounded-full bg-gray-600`}
|
||||
>
|
||||
<p className="text-9xl">?</p>
|
||||
</div>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user