"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 persistAvatar: (patch: BeamAvatarPatch) => void; }; export function ProfilePanel({ account, profile, avatarSaving, persistAvatar, }: ProfilePanelProps) { return ( <> {account.avatar && (
账户头像 Beam 形象会在刷新和换设备后保持一致
{beamAvatarPalettes.map((palette, index) => ( ))}
)}
账户信息登录与账户识别信息
昵称
{profile.name.trim() || "尚未设置"}与“我的星盘”名称同步
登录邮箱
{account.user.email || "尚未读取邮箱"}
); }