"use client" import * as React from "react" import { Download, FileText } from "lucide-react" import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "@/components/ui/dialog" import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table" import { Button } from "@/components/ui/button" import { ScrollArea } from "@/components/ui/scroll-area" import { Badge } from "@/components/ui/badge" interface PosFileInfo { fileName: string dcmtmId: string projNo: string posNo: string posRevNo: string fileSer: string } interface PosFileSelectionDialogProps { isOpen: boolean onClose: () => void materialCode: string files: PosFileInfo[] onDownload: (fileIndex: number, fileName: string) => void downloadingIndex: number | null } export function PosFileSelectionDialog({ isOpen, onClose, materialCode, files, onDownload, downloadingIndex, }: PosFileSelectionDialogProps) { return ( POS 파일 선택 자재코드 {materialCode}에 대한 POS 파일 {files.length}개가 있습니다. 다운로드할 파일을 선택해주세요. 번호 파일명 프로젝트 POS 번호 리비전 파일 SEQ 다운로드 {files.map((file, index) => ( #{index + 1}
{file.fileName}
{file.projNo} {file.posNo} {file.posRevNo} {file.fileSer}
))}
{files.length === 0 && (

사용 가능한 POS 파일이 없습니다.

)}
) }