Files
sam-react-prod/src/components/customer-center/InquiryManagement/inquiryConfig.ts

66 lines
1.6 KiB
TypeScript
Raw Normal View History

'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: '삭제',
},
};