'use client'; import { MessageSquare } from 'lucide-react'; import type { DetailConfig } from '@/components/templates/IntegratedDetailTemplate/types'; /** * 1:1 문의 등록 페이지 Config * IntegratedDetailTemplate 마이그레이션 (2025-01-20) */ export const inquiryCreateConfig: DetailConfig = { title: '1:1 문의', description: '1:1 문의를 등록합니다', icon: MessageSquare, basePath: '/customer-center/qna', fields: [], actions: { showBack: true, showEdit: false, showDelete: false, showSave: true, submitLabel: '등록', }, }; /** * 1:1 문의 수정 페이지 Config */ export const inquiryEditConfig: DetailConfig = { ...inquiryCreateConfig, title: '1:1 문의', description: '1:1 문의를 수정합니다', actions: { ...inquiryCreateConfig.actions, submitLabel: '저장', }, }; /** * 1:1 문의 상세 페이지 Config * * 참고: 이 config는 타이틀/버튼 영역만 정의 * 폼 내용은 renderView/renderForm에서 처리 * * 특이사항: * - view 모드만 지원 (수정은 별도 InquiryForm 사용) * - 댓글 CRUD 기능 * - 작성자만 삭제/수정 가능 * - 답변완료 후 수정 불가 */ export const inquiryConfig: DetailConfig = { title: '1:1 문의 상세', description: '1:1 문의를 조회합니다.', icon: MessageSquare, basePath: '/customer-center/qna', fields: [], // renderView/renderForm 사용으로 필드 정의 불필요 gridColumns: 1, actions: { showBack: true, showDelete: true, showEdit: true, backLabel: '목록', editLabel: '수정', deleteLabel: '삭제', }, };