import { Heading } from "@medusajs/ui" import { useTranslation } from "react-i18next" import { RouteDrawer } from "../../../components/modals" import { useMe } from "../../../hooks/api/users" import { EditProfileForm } from "./components/edit-profile-form/edit-profile-form" export const ProfileEdit = () => { const { user, isPending: isLoading, isError, error } = useMe() const { t } = useTranslation() if (isError) { throw error } return ( {t("profile.edit.header")} {!isLoading && user && } ) }