"use client"; import { Box, Button, Dialog, DialogActions, DialogContent, DialogTitle, Typography, Alert, Stack, Divider, } from "@mui/material"; import { useTranslation } from "react-i18next"; interface LotConfirmationModalProps { open: boolean; onClose: () => void; onConfirm: () => void; expectedLot: { lotNo: string; itemCode: string; itemName: string; }; scannedLot: { lotNo: string; itemCode: string; itemName: string; }; isLoading?: boolean; } const LotConfirmationModal: React.FC = ({ open, onClose, onConfirm, expectedLot, scannedLot, isLoading = false, }) => { const { t } = useTranslation("pickOrder"); return ( {t("Lot Number Mismatch")} {t("The scanned item matches the expected item, but the lot number is different. Do you want to proceed with this different lot?")} {t("Expected Lot:")} {t("Item Code")}: {expectedLot.itemCode} {t("Item Name")}: {expectedLot.itemName} {t("Lot No")}: {expectedLot.lotNo} {t("Scanned Lot:")} {t("Item Code")}: {scannedLot.itemCode} {t("Item Name")}: {scannedLot.itemName} {t("Lot No")}: {scannedLot.lotNo} {t("If you confirm, the system will:")}
  • {t("Update your suggested lot to the this scanned lot")}
); }; export default LotConfirmationModal;