'use server';

/**
 * 생산지시 공유 액션 — 모듈 경계용 래퍼
 *
 * 원본: @/components/production/ProductionOrders/actions
 * 'use server' 파일에서는 re-export 불가 → async 래퍼 함수로 위임
 */

import {
  getProductionOrders as _getProductionOrders,
  getProductionOrderStats as _getProductionOrderStats,
  getProductionOrderDetail as _getProductionOrderDetail,
} from '@/components/production/ProductionOrders/actions'; // MODULE_SEPARATION_OK — 공유 액션 래퍼 (Phase 0)
import type { ProductionOrderListParams } from './types';

export async function getProductionOrders(params: ProductionOrderListParams) {
  return _getProductionOrders(params);
}

export async function getProductionOrderStats() {
  return _getProductionOrderStats();
}

export async function getProductionOrderDetail(orderId: string) {
  return _getProductionOrderDetail(orderId);
}
