From 54c654260c098864a8e113d46a242a057b58aae6 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Tue, 18 Nov 2025 15:03:15 +0900
Subject: (김준회) swp 수정: Activity Level에 따라 REV/Stage 표시하도록 변경,
 필드 NOTE->NOTE1, NOTE2 구조 변경 등
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/swp/table/swp-note-dialog.tsx | 44 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 lib/swp/table/swp-note-dialog.tsx

(limited to 'lib/swp/table/swp-note-dialog.tsx')

diff --git a/lib/swp/table/swp-note-dialog.tsx b/lib/swp/table/swp-note-dialog.tsx
new file mode 100644
index 00000000..5f86de24
--- /dev/null
+++ b/lib/swp/table/swp-note-dialog.tsx
@@ -0,0 +1,44 @@
+"use client";
+
+import React from "react";
+import {
+  Dialog,
+  DialogContent,
+  DialogHeader,
+  DialogTitle,
+} from "@/components/ui/dialog";
+import { ScrollArea } from "@/components/ui/scroll-area";
+
+interface SwpNoteDialogProps {
+  open: boolean;
+  onOpenChange: (open: boolean) => void;
+  title: string;
+  content: string | null;
+}
+
+/**
+ * SWP Note 전체 내용 표시 Dialog
+ * DC Note (NOTE1) 또는 Eng Note (NOTE2)의 전체 내용을 표시합니다.
+ */
+export function SwpNoteDialog({
+  open,
+  onOpenChange,
+  title,
+  content,
+}: SwpNoteDialogProps) {
+  return (
+    <Dialog open={open} onOpenChange={onOpenChange}>
+      <DialogContent className="max-w-2xl max-h-[80vh]">
+        <DialogHeader>
+          <DialogTitle>{title}</DialogTitle>
+        </DialogHeader>
+        <ScrollArea className="max-h-[60vh] pr-4">
+          <div className="whitespace-pre-wrap text-sm">
+            {content || <span className="text-muted-foreground">내용이 없습니다.</span>}
+          </div>
+        </ScrollArea>
+      </DialogContent>
+    </Dialog>
+  );
+}
+
-- 
cgit v1.2.3

