frontend: add user profile page

This commit is contained in:
Kentai Radiquum 2024-04-24 14:40:53 +05:00
parent 32a4da1a31
commit 320a36d27e
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
5 changed files with 194 additions and 3 deletions

View file

@ -0,0 +1,17 @@
"use client";
import { useUserStore } from "@/app/store/user-store";
import { UserProfile } from "@/app/components/UserProfile/UserProfile";
export default function Profile() {
const userStore = useUserStore();
return (
<>
{userStore.user ? (
<UserProfile profile={userStore.user.profile} />
) : (
<progress></progress>
)}
</>
);
}