From fbb3b7f05737f9571b04b0a8f4f15c0928de8545 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 7 Jul 2025 01:43:36 +0000
Subject: (대표님) 변경사항 20250707 10시 43분
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../form-data-report-temp-upload-dialog.tsx        | 112 ++++++++++-----------
 1 file changed, 56 insertions(+), 56 deletions(-)

(limited to 'components/form-data/form-data-report-temp-upload-dialog.tsx')

diff --git a/components/form-data/form-data-report-temp-upload-dialog.tsx b/components/form-data/form-data-report-temp-upload-dialog.tsx
index e4d78248..fe137daf 100644
--- a/components/form-data/form-data-report-temp-upload-dialog.tsx
+++ b/components/form-data/form-data-report-temp-upload-dialog.tsx
@@ -11,17 +11,11 @@ import {
 import { Button } from "@/components/ui/button";
 import { Label } from "@/components/ui/label";
 import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
-import {
-  Tooltip,
-  TooltipContent,
-  TooltipProvider,
-  TooltipTrigger,
-} from "@/components/ui/tooltip";
-import { TempDownloadBtn } from "./temp-download-btn";
 import { VarListDownloadBtn } from "./var-list-download-btn";
 import { FormDataReportTempUploadTab } from "./form-data-report-temp-upload-tab";
 import { FormDataReportTempUploadedListTab } from "./form-data-report-temp-uploaded-list-tab";
 import { DataTableColumnJSON } from "./form-data-table-columns";
+import { FileActionsDropdown } from "../ui/file-actions";
 
 interface FormDataReportTempUploadDialogProps {
   columnsJSON: DataTableColumnJSON[];
@@ -44,54 +38,60 @@ export const FormDataReportTempUploadDialog: FC<
   formCode,
   uploaderType,
 }) => {
-  const [tabValue, setTabValue] = useState<"upload" | "uploaded">("upload");
+    const [tabValue, setTabValue] = useState<"upload" | "uploaded">("upload");
 
-  return (
-    <Dialog open={open} onOpenChange={setOpen}>
-      <DialogContent className="w-[600px]" style={{ maxWidth: "none" }}>
-        <DialogHeader className="gap-2">
-          <DialogTitle>Vendor Document Template</DialogTitle>
-          <DialogDescription className="flex justify-around gap-[16px] ">
-            {/* 사용하시고자 하는 Vendor Document Template(.docx)를 업로드
+    return (
+      <Dialog open={open} onOpenChange={setOpen}>
+        <DialogContent className="w-[600px]" style={{ maxWidth: "none" }}>
+          <DialogHeader className="gap-2">
+            <DialogTitle>Vendor Document Template</DialogTitle>
+            <DialogDescription className="flex justify-around gap-[16px] ">
+              {/* 사용하시고자 하는 Vendor Document Template(.docx)를 업로드
             하여주시기 바랍니다. */}
-            <TempDownloadBtn />
-            <VarListDownloadBtn columnsJSON={columnsJSON} formCode={formCode} />
-          </DialogDescription>
-        </DialogHeader>
-        <Tabs value={tabValue}>
-          <div className="flex justify-between items-center">
-            <TabsList className="w-full">
-              <TabsTrigger
-                value="upload"
-                onClick={() => setTabValue("upload")}
-                className="flex-1"
-              >
-                Upload Template File
-              </TabsTrigger>
-              <TabsTrigger
-                value="uploaded"
-                onClick={() => setTabValue("uploaded")}
-                className="flex-1"
-              >
-                Uploaded Template File List
-              </TabsTrigger>
-            </TabsList>
-          </div>
-          <TabsContent value="upload">
-            <FormDataReportTempUploadTab
-              packageId={packageId}
-              formId={formId}
-              uploaderType={uploaderType}
-            />
-          </TabsContent>
-          <TabsContent value="uploaded">
-            <FormDataReportTempUploadedListTab
-              packageId={packageId}
-              formId={formId}
-            />
-          </TabsContent>
-        </Tabs>
-      </DialogContent>
-    </Dialog>
-  );
-};
\ No newline at end of file
+              <FileActionsDropdown
+                filePath={"/vendorFormReportSample"}
+                fileName={"sample_template_file.docx"}
+                variant="ghost"
+                size="icon"
+                description="Sample File"
+              />
+              <VarListDownloadBtn columnsJSON={columnsJSON} formCode={formCode} />
+            </DialogDescription>
+          </DialogHeader>
+          <Tabs value={tabValue}>
+            <div className="flex justify-between items-center">
+              <TabsList className="w-full">
+                <TabsTrigger
+                  value="upload"
+                  onClick={() => setTabValue("upload")}
+                  className="flex-1"
+                >
+                  Upload Template File
+                </TabsTrigger>
+                <TabsTrigger
+                  value="uploaded"
+                  onClick={() => setTabValue("uploaded")}
+                  className="flex-1"
+                >
+                  Uploaded Template File List
+                </TabsTrigger>
+              </TabsList>
+            </div>
+            <TabsContent value="upload">
+              <FormDataReportTempUploadTab
+                packageId={packageId}
+                formId={formId}
+                uploaderType={uploaderType}
+              />
+            </TabsContent>
+            <TabsContent value="uploaded">
+              <FormDataReportTempUploadedListTab
+                packageId={packageId}
+                formId={formId}
+              />
+            </TabsContent>
+          </Tabs>
+        </DialogContent>
+      </Dialog>
+    );
+  };
\ No newline at end of file
-- 
cgit v1.2.3

