This commit is contained in:
luriasb
2026-10-20 11:20:49 -06:00
parent 0ff530aa22
commit ea81e01a0a
2 changed files with 210 additions and 1 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ const AVATAR_COLORS: Record<string, string> = {
"C9B6E8-7B5FC0": "bg-[#C9B6E8] text-[#7B5FC0]",
};
function avatarClasses(kid: Kid): string {
export function avatarClasses(kid: Kid): string {
const key = `${kid.avatar.bg.replace("#", "")}-${kid.avatar.text.replace("#", "")}`;
return AVATAR_COLORS[key] ?? "";
}