mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
Avatar component
This commit is contained in:
10
packages/frontend/src/components/avatar.tsx
Normal file
10
packages/frontend/src/components/avatar.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { UserRecord } from "@issue/shared";
|
||||
import { UserRound } from "lucide-react";
|
||||
|
||||
export default function Avatar({ user, size }: { user: UserRecord; size?: number }) {
|
||||
return (
|
||||
<div className={`flex items-center justify-center rounded-full border w-${size || 7} h-${size || 7}`}>
|
||||
<UserRound size={size ? size * 2 + 2 : 16} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user