"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 && ({avatarNotice}
}