"use client"

import { Button } from "@/components/ui/button"
import { Plus, FileText, TrendingUp } from "lucide-react"
import { useRouter } from "next/navigation"
import { InformationButton } from "@/components/information/information-button"
import { useTranslation } from "@/i18n/client"

export function BiddingsPageHeader(props: {lng: string}) {
  const {lng} = props
  const {t} = useTranslation(lng, 'menu')
  const router = useRouter()

  return (
    <div className="flex items-center justify-between">
      {/* 좌측: 제목과 설명 */}
      <div className="space-y-1">
        <div className="flex items-center gap-2">
          <h2 className="text-3xl font-bold tracking-tight">{t('menu.procurement.bid_management')}</h2>
          <InformationButton pagePath="evcp/bid" />
        </div>
        <p className="text-muted-foreground">
          {t('menu.procurement.bid_management_desc')}
        </p>
      </div>

      {/* 우측: 액션 버튼들 */}
      <div className="flex items-center gap-2">
        {/* <Button
          variant="outline"
          onClick={() => router.push('/evcp/biddings/analytics')}
        >
          <TrendingUp className="mr-2 h-4 w-4" />
          분석 보기
        </Button> */}
        
        <Button
          variant="outline"
          onClick={() => router.push('/evcp/bidding-notice')}
        >
          <FileText className="mr-2 h-4 w-4" />
          공고문 템플릿
        </Button>

      </div>
    </div>
  )
}