From 3d51a3ad24599af437b78d75997b1f56016b31d6 Mon Sep 17 00:00:00 2001 From: sk1982 Date: Sun, 17 Mar 2024 19:06:22 -0400 Subject: [PATCH] chuni: add avatar component --- src/components/chuni/avatar.tsx | 57 +++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/components/chuni/avatar.tsx diff --git a/src/components/chuni/avatar.tsx b/src/components/chuni/avatar.tsx new file mode 100644 index 0000000..30ac6ad --- /dev/null +++ b/src/components/chuni/avatar.tsx @@ -0,0 +1,57 @@ +import { getImageUrl } from '@/helpers/assets'; + +export type ChuniAvatarProps = { + wear: string | null, + head: string | null, + face: string | null, + skin: string | null, + item: string | null, + back: string | null, + className?: string +}; + +export const ChuniAvatar = ({ wear, head, face, skin, item, back, className }: ChuniAvatarProps) => { + return (
+ + {head?.includes('CHU_UI_Avatar_Tex_01200001') &&
+ +
} +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ + + +
+ +
+
+ +
+
) +};