From 882dc6f0c6e67fa0b0dc73d532b07dcda2bc5cea Mon Sep 17 00:00:00 2001 From: toothlessdev Date: Thu, 21 Nov 2024 16:50:18 +0900 Subject: [PATCH] feature: add UserCard component --- src/domains/match/components/UserCard.tsx | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/domains/match/components/UserCard.tsx diff --git a/src/domains/match/components/UserCard.tsx b/src/domains/match/components/UserCard.tsx new file mode 100644 index 0000000..9766e49 --- /dev/null +++ b/src/domains/match/components/UserCard.tsx @@ -0,0 +1,31 @@ +import { Info } from "lucide-react"; + +import { Avatar, AvatarFallback, AvatarImage } from "../../../components/ui/avatar"; + +export interface UserCardProps { + index: number; + nickname: string; + imgSrc?: string; + status: "PENDING" | "ACCEPTED"; +} + +export const UserCard = ({ index, nickname, imgSrc, status }: UserCardProps) => { + return ( +
+
+

{index}

+ + + {nickname[0]} + +

{nickname}

+
+
+
+ {status === "PENDING" ? "수락대기" : "수락완료"} +
+ +
+
+ ); +};