Files
blitzkit/packages/website-ue/src/components/AvatarCard/index.tsx
T

19 lines
444 B
TypeScript
Raw Normal View History

2026-01-12 14:13:21 -06:00
import type { Avatar } from "../../protos/avatar";
import { Text } from "../Text";
import "./index.css";
interface Props {
avatar: Avatar;
}
export function AvatarCard({ avatar }: Props) {
return (
<div className="avatar-card">
<div
className="avatar-image"
style={{ backgroundImage: `url(/api/avatars/${avatar.name}.webp)` }}
/>
<Text className="avatar-label">{avatar.name}</Text>
</div>
);
}