import { useQuery } from "@tanstack/react-query";
import { ProfileCard, ProfileEditor } from "@modules/profile";
import { getProfile } from "@modules/profile/api/profileApi";
export default function ProfilePage(): JSX.Element {
const { data, isLoading } = useQuery({
queryKey: ["profile-me"],
queryFn: getProfile
});
if (isLoading || !data) {
return (
Loading profile...
);
}
return (
);
}