import { CrudForm } from "../../common/crud/crud-form";
import { useParams } from "react-router"


export const AccountEdit: React.FC = () => {
  const { id } = useParams()

  return (
    <div>
      <CrudForm
        schemaName={"AccountUpdate"}
        resource={"accounts"}
        id={id}
      />
      <CrudForm
        schemaName={"AccountUpdate"}
        resource={`accounts/${id}/opening`}
        id={id}
      />
    </div>
  );
};
