"use client"; import { UserAvatar } from "@/components/user-avatar"; import { beamAvatarPalettes, type BeamAvatarPatch } from "@/lib/beam-avatar"; import type { Account, Profile } from "@/lib/home-types"; export type ProfilePanelProps = { readonly account: Account; readonly profile: Profile; readonly avatarSaving: boolean; readonly avatarNotice: string; readonly accountError: string; readonly persistAvatar: (patch: BeamAvatarPatch) => void; }; export function ProfilePanel({ account, profile, avatarSaving, avatarNotice, accountError, persistAvatar, }: ProfilePanelProps) { return ( <> {accountError &&

{accountError}

} {account.avatar && (
头像 Beam 形象由随机种子生成,刷新和换设备后保持一致
{beamAvatarPalettes.map((palette, index) => ( ))}
{avatarNotice &&

{avatarNotice}

}
)}
账户信息登录与账户识别信息
昵称
{profile.name.trim() || "尚未设置"}与“我的星盘”名称同步
登录邮箱
{account.user.email || "尚未读取邮箱"}
); }