'use client';

import { Wrench } from 'lucide-react';
import type { DetailConfig } from '@/components/templates/IntegratedDetailTemplate/types';

/**
 * 공정 등록 페이지 Config
 * IntegratedDetailTemplate 마이그레이션 (2025-01-20)
 */
export const processCreateConfig: DetailConfig = {
  title: '공정',
  description: '새로운 공정을 등록합니다',
  icon: Wrench,
  basePath: '/master-data/process-management',
  fields: [],
  actions: {
    showBack: true,
    showEdit: false,
    showDelete: false,
    showSave: true,
    submitLabel: '등록',
  },
};

/**
 * 공정 수정 페이지 Config
 */
export const processEditConfig: DetailConfig = {
  ...processCreateConfig,
  title: '공정',
  description: '공정 정보를 수정합니다',
  actions: {
    ...processCreateConfig.actions,
    submitLabel: '저장',
  },
};
