"use client" import * as React from "react" import { useRouter } from "next/navigation" import { Button } from "@/components/ui/button" import { Badge } from "@/components/ui/badge" import { ArrowLeft, Eye, Download, Settings } from "lucide-react" import { InformationButton } from "@/components/information/information-button" interface GtcClausesPageHeaderProps { document: any // GtcDocumentWithRelations 타입 } export function GtcClausesPageHeader({ document }: GtcClausesPageHeaderProps) { const router = useRouter() const handleBack = () => { router.push('/evcp/basic-contract-template/gtc') } const handlePreview = () => { // PDFTron 미리보기 기능 console.log("PDF Preview for document:", document.id) } const handleDownload = () => { // 문서 다운로드 기능 console.log("Download document:", document.id) } const handleSettings = () => { // 문서 설정 (템플릿 관리 등) console.log("Document settings:", document.id) } return (
{/* 헤더 왼쪽 */}

GTC 조항 관리

{document.type === "standard" ? "표준" : "프로젝트"} {document.project && ( <> {document.project.name} ({document.project.code}) )} v{document.revision} {document.fileName && ( <> {document.fileName} )}
{/* 헤더 오른쪽 - 액션 버튼들 */}
{/* */}
) }