summaryrefslogtreecommitdiff
path: root/lib/b-rfq/final/update-final-rfq-sheet.tsx
blob: 65e23a923295a833465b8eb31b9a1340a3a15888 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
"use client"

import * as React from "react"
import {
  Sheet,
  SheetContent,
  SheetDescription,
  SheetHeader,
  SheetTitle,
} from "@/components/ui/sheet"
import { Button } from "@/components/ui/button"
import { FinalRfqDetailView } from "@/db/schema"

interface UpdateFinalRfqSheetProps {
  open: boolean
  onOpenChange: (open: boolean) => void
  finalRfq: FinalRfqDetailView | null
}

export function UpdateFinalRfqSheet({
  open,
  onOpenChange,
  finalRfq
}: UpdateFinalRfqSheetProps) {
  return (
    <Sheet open={open} onOpenChange={onOpenChange}>
      <SheetContent className="sm:max-w-md">
        <SheetHeader>
          <SheetTitle>최종 RFQ 수정</SheetTitle>
          <SheetDescription>
            최종 RFQ 정보를 수정합니다.
          </SheetDescription>
        </SheetHeader>
        
        <div className="py-6">
          {finalRfq && (
            <div className="space-y-4">
              <div>
                <h4 className="font-medium">RFQ 정보</h4>
                <p className="text-sm text-muted-foreground">
                  RFQ Code: {finalRfq.rfqCode}
                </p>
                <p className="text-sm text-muted-foreground">
                  벤더: {finalRfq.vendorName}
                </p>
                <p className="text-sm text-muted-foreground">
                  상태: {finalRfq.finalRfqStatus}
                </p>
              </div>
              
              {/* TODO: 실제 업데이트 폼 구현 */}
              <div className="text-center text-muted-foreground">
                업데이트 폼이 여기에 구현됩니다.
              </div>
            </div>
          )}
        </div>

        <div className="flex justify-end gap-2">
          <Button variant="outline" onClick={() => onOpenChange(false)}>
            취소
          </Button>
          <Button onClick={() => onOpenChange(false)}>
            저장
          </Button>
        </div>
      </SheetContent>
    </Sheet>
  )
}