import classNames from "classnames"; import { UserIcon } from "@/components/UserIcon"; import { AccountProfile } from "@/pages/parts/auth/AccountCreatePart"; import { useAuthStore } from "@/stores/auth"; export interface AvatarProps { profile: AccountProfile["profile"]; sizeClass?: string; iconClass?: string; } export function Avatar(props: AvatarProps) { return (
); } export function UserAvatar(props: { sizeClass?: string; iconClass?: string; bottom?: React.ReactNode; }) { const auth = useAuthStore(); if (!auth.account) return null; return (
{props.bottom ? (
{props.bottom}
) : null}
); }