"use client" import * as React from "react" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Badge } from "@/components/ui/badge" import { ScrollArea } from "@/components/ui/scroll-area" import { formatDateToQuarter, formatDate } from "@/lib/utils" interface ProjectSnapshot { pspid?: string projNm?: string projMsrm?: number kunnr?: string kunnrNm?: string cls1?: string cls1Nm?: string ptype?: string ptypeNm?: string estmPm?: string scDt?: string klDt?: string lcDt?: string dlDt?: string dockNo?: string dockNm?: string projNo?: string ownerNm?: string pspUpdatedAt?: string | Date } interface SeriesSnapshot { sersNo?: string klDt?: string } interface ProjectInfoTabProps { quotation: { id: number rfq: { id: number rfqCode: string | null materialCode: string | null dueDate: Date | null status: string | null remark: string | null projectSnapshot?: ProjectSnapshot | null seriesSnapshot?: SeriesSnapshot[] | null item?: { id: number itemCode: string | null itemName: string | null } | null biddingProject?: { id: number pspid: string | null projNm: string | null } | null createdByUser?: { id: number name: string | null email: string | null } | null } | null vendor: { id: number vendorName: string vendorCode: string | null } | null } } export function ProjectInfoTab({ quotation }: ProjectInfoTabProps) { const rfq = quotation.rfq const projectSnapshot = rfq?.projectSnapshot const seriesSnapshot = rfq?.seriesSnapshot if (!rfq) { return (
연결된 RFQ 정보가 없습니다.