'use client';

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

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

const WorkLogModalImpl = dynamic(
  () =>
    import('@/components/production/WorkOrders/documents/WorkLogModal').then(
      (mod) => mod.WorkLogModal,
    ),
  {
    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 { WorkLogModalImpl as WorkLogModal };
