+export const AddExplosivesPermitModal: FC
= (props) => (
+
+ {isFeatureEnabled(Feature.ESUP_PERMIT_AMENDMENT) ? (
+
+ ) : (
-
- );
-};
+ )}
+
+);
export default AddExplosivesPermitModal;
diff --git a/services/core-web/src/components/modalContent/ExplosivesPermitViewModal.tsx b/services/core-web/src/components/modalContent/ExplosivesPermitViewModal.tsx
new file mode 100644
index 0000000000..9b9fc8212c
--- /dev/null
+++ b/services/core-web/src/components/modalContent/ExplosivesPermitViewModal.tsx
@@ -0,0 +1,292 @@
+import "@ant-design/compatible/assets/index.css";
+
+import { Button, Col, Row, Table, Typography } from "antd";
+import { IExplosivesPermit, IMine } from "@mds/common";
+import React, { FC, useEffect, useState } from "react";
+import { connect } from "react-redux";
+import ExplosivesPermitMap from "@/components/maps/ExplosivesPermitMap";
+import { formatDate } from "@common/utils/helpers";
+import Magazine from "@/components/mine/ExplosivesPermit/Magazine";
+import { bindActionCreators } from "redux";
+import { openDocument } from "@/components/syncfusion/DocumentViewer";
+import { downloadFileFromDocumentManager } from "@common/utils/actionlessNetworkCalls";
+
+export const getGeneratedDocCategory = (doc: IExplosivesPermit) => {
+ switch (doc.explosives_permit_document_type_code) {
+ case "LET":
+ return "Permit Enclosed Letter";
+ case "PER":
+ return "Explosives Storage and Use Permit";
+ default:
+ return "";
+ }
+};
+
+export const generatedDocColumns = [
+ {
+ title: "Category",
+ dataIndex: "explosives_permit_document_type_code",
+ key: "explosives_permit_document_type_code",
+ render: (text, record) =>