'use client'

import { AuthGuard } from '@/components/auth-guard'
import { FulfillmentGoodsManagement } from '@/components/fulfillment-supplies/fulfillment-goods-new'
import { useRoleGuard } from '@/hooks/useRoleGuard'

// Вариант 2: Старый компонент (BACKUP для отката)
// import { FulfillmentGoodsOrdersTab } from '@/components/fulfillment-supplies/fulfillment-supplies/fulfillment-goods-orders-tab'

export default function GoodsNewPage() {
  useRoleGuard('FULFILLMENT')
  return (
    <AuthGuard>
      <div className="h-full overflow-hidden">
        {/* Вариант 1: Новый модульный компонент V2 (активный) */}
        <FulfillmentGoodsManagement />
        
        {/* Вариант 2: Старый компонент V1 (BACKUP для отката) */}
        {/*
        <div className="h-full overflow-hidden">
          <h3 className="text-white font-semibold mb-4">Новые товары</h3>
          <FulfillmentGoodsOrdersTab />
        </div>
        */}
      </div>
    </AuthGuard>
  )
}
