refactor(characters): drive shared UI from active character

This commit is contained in:
2026-07-17 19:33:59 +08:00
parent 8bb1e21886
commit 7bd5defa5e
42 changed files with 335 additions and 118 deletions
+4 -4
View File
@@ -4,8 +4,8 @@ import Image from "next/image";
import type { CSSProperties } from "react";
export interface CharacterAvatarProps {
src?: string;
alt?: string;
src: string;
alt: string;
className?: string;
size?: number | string;
imageSize?: number;
@@ -13,8 +13,8 @@ export interface CharacterAvatarProps {
}
export function CharacterAvatar({
src = "/images/avatar/elio.png",
alt = "Elio Silvestri",
src,
alt,
className,
size = 43,
imageSize,