import { useNavigate } from "react-router-dom";
import SubmitExternalRecordForm from "../components/outgoing/submitExternalRecords";
import { PortalFormPage } from "../components/shared/PortalFormPrimitives";
import { COMPLAINT_RECORDS_PATH } from "@/complaints/utils/complaintRoutes";

export const SubmitExternalRecordFormPage = () => {
  const navigate = useNavigate();

  return (
    <PortalFormPage>
      <SubmitExternalRecordForm
        onCancel={() => navigate(COMPLAINT_RECORDS_PATH)}
      />
    </PortalFormPage>
  );
};
