import AddressForm from "../../../components/forms/address_form";
import { useLoaderData } from "react-router-dom";
import MainContentLayout from "../../../components/main_content_layout";

export function Edit() {
  const address = useLoaderData().data.data.attributes;

  return(
    <MainContentLayout>
      <div className="w-4/5 my-6">
          <h1 className="my-6 text-3xl">
            Editar cuenta
          </h1>
          <AddressForm address={address}/>
        </div>
    </MainContentLayout>
  );
}