import { Heading } from "@medusajs/ui" import { useTranslation } from "react-i18next" import { useParams } from "react-router-dom" import { RouteDrawer } from "../../../components/modals" import { useCustomer } from "../../../hooks/api/customers" import { EditCustomerForm } from "./components/edit-customer-form" export const CustomerEdit = () => { const { t } = useTranslation() const { id } = useParams() const { customer, isLoading, isError, error } = useCustomer(id!) if (isError) { throw error } return ( {t("customers.edit.header")} {!isLoading && customer && } ) }