diff options
Diffstat (limited to 'packages/ui-new/src/components/user-avatar.tsx')
| -rw-r--r-- | packages/ui-new/src/components/user-avatar.tsx | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/packages/ui-new/src/components/user-avatar.tsx b/packages/ui-new/src/components/user-avatar.tsx deleted file mode 100644 index bbdb84c..0000000 --- a/packages/ui-new/src/components/user-avatar.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import { useAuthStore } from "@/models/auth"; -import { Avatar, AvatarBadge, AvatarFallback, AvatarImage } from "./ui/avatar"; - -export function UserAvatar({ - className, - ...props -}: React.ComponentProps<typeof Avatar>) { - const authStore = useAuthStore(); - - if (!authStore.account) { - return null; - } - - return ( - <Avatar {...props}> - <AvatarImage - src={`https://minotar.net/helm/${authStore.account.username}/100.png`} - /> - <AvatarFallback>{authStore.account.username.slice(0, 2)}</AvatarFallback> - <AvatarBadge /> - </Avatar> - ); -} |