+ {isEditMode ? (
+
+
+ Label:
+ setEditLabel(e.target.value)}
+ placeholder="Label"
+ style={{ marginTop: "4px", width: "100%" }}
+ />
+
+
+ Production:
+ {
+ const newProdId = Number(e.target.value);
+ setEditProductionId(newProdId);
+ const newProd = productions?.productions?.find(
+ (p) => String(p.productionId) === e.target.value
+ );
+ if (newProd?.lines?.[0]) {
+ setEditLineId(Number(newProd.lines[0].id));
+ }
+ }}
+ style={{ marginTop: "4px", width: "100%" }}
+ >
+ {productions?.productions?.map((p) => (
+
+ ))}
+
+
+
+ Line:
+ setEditLineId(Number(e.target.value))}
+ style={{ marginTop: "4px", width: "100%" }}
+ >
+ {availableLines.map((line: TLine) => (
+
+ ))}
+
+
+
+
+
+
+
+ ) : (
+
+
+
+ Label: {transmitter.label || "N/A"}
+
+
+ Production: {production?.name}
+
+
+ Line: {line?.name}
+
+
+
+
+ )}
+
+
+
+ ID:{" "}
+ {transmitter._id}
+
+
+ Label:{" "}
+ {transmitter.label || "N/A"}
+
+
+ Port:{" "}
+ {transmitter.port}
+
+
+ Production ID:{" "}
+ {transmitter.productionId}
+
+
+ Line ID:{" "}
+ {transmitter.lineId}
+
+
+ WHIP URL:{" "}
+
+ {transmitter.whipUrl}
+
+
+
+ SRT URL:{" "}
+
+ {transmitter.srtUrl || "N/A"}
+
+
+
+ Pass-through URL:{" "}
+
+ {transmitter.passThroughUrl || "N/A"}
+
+
+
+ Mode:{" "}
+ {transmitter.mode}
+
+
+ Status:{" "}
+ {transmitter.status}
+
+
+ Created:{" "}
+ {transmitter.createdAt
+ ? new Date(transmitter.createdAt).toLocaleString()
+ : "N/A"}
+
+
+ Updated:{" "}
+ {transmitter.updatedAt
+ ? new Date(transmitter.updatedAt).toLocaleString()
+ : "N/A"}
+
+
+ )}
+