'use client';

/**
 * InspectionReportModal — 공유 래퍼
 *
 * 원본: @/components/production/WorkOrders/documents/InspectionReportModal
 * 목적: 공통 ERP(결재, 품질)에서 생산 모듈을 직접 import하지 않도록
 *       dynamic import로 정적 의존성 체인을 끊음
 */

import dynamic from 'next/dynamic';
import { Loader2 } from 'lucide-react';

const InspectionReportModalImpl = dynamic(
  () =>
    import('@/components/production/WorkOrders/documents/InspectionReportModal').then(
      (mod) => mod.InspectionReportModal,
    ),
  {
    loading: () => (
      <div className="flex items-center justify-center p-8">
        <Loader2 className="h-6 w-6 animate-spin text-muted-foreground" />
      </div>
    ),
    ssr: false,
  },
);

export { InspectionReportModalImpl as InspectionReportModal };
