'use client'; /** * 성공 다이얼로그 (검사 등록 완료 / 입고 처리 완료) */ import { CheckCircle2 } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Dialog, DialogContent, } from '@/components/ui/dialog'; interface Props { open: boolean; type: 'inspection' | 'receiving'; lotNo?: string; onClose: () => void; } export function SuccessDialog({ open, type, lotNo, onClose }: Props) { const title = type === 'inspection' ? '수입검사가 합격 처리되었습니다.' : '입고 처리가 완료되었습니다.'; const message = type === 'inspection' ? `LOT번호: ${lotNo}\n입고 처리가 완료되었습니다.` : `LOT번호: ${lotNo}\n재고에 반영되었습니다.`; return ( !newOpen && onClose()}>

{title}

{message}
); }