'use client';

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

/**
 * 게시글 등록 페이지 Config
 * IntegratedDetailTemplate 마이그레이션 (2025-01-20)
 */
export const boardCreateConfig: DetailConfig = {
  title: '게시글',
  description: '새로운 게시글을 등록합니다',
  icon: FileText,
  basePath: '/boards',
  fields: [],
  actions: {
    showBack: true,
    showEdit: false,
    showDelete: false,
    showSave: true,
    submitLabel: '등록',
  },
};

/**
 * 게시글 수정 페이지 Config
 */
export const boardEditConfig: DetailConfig = {
  ...boardCreateConfig,
  title: '게시글',
  description: '게시글을 수정합니다',
  actions: {
    ...boardCreateConfig.actions,
    submitLabel: '저장',
  },
};
