Files
sam-react-prod/src/components/business/construction/contract/contractConfig.ts

37 lines
1.2 KiB
TypeScript
Raw Normal View History

import { FileText } from 'lucide-react';
import type { DetailConfig } from '@/components/templates/IntegratedDetailTemplate/types';
/**
* Config
*
* 참고: config는 /
* ContractDetailForm의 renderView/renderForm에서
* ( , , )
*
* :
* - create: '계약 등록' '변경 계약서 생성'
* - view/edit: '계약 상세'
*/
export const contractConfig: DetailConfig = {
title: '계약 상세',
description: '계약 정보를 관리합니다',
icon: FileText,
basePath: '/construction/project/contract',
fields: [], // renderView/renderForm 사용으로 필드 정의 불필요
gridColumns: 2,
actions: {
showBack: true,
showDelete: true,
showEdit: true,
backLabel: '목록',
deleteLabel: '삭제',
editLabel: '수정',
submitLabel: '저장',
cancelLabel: '취소',
deleteConfirmMessage: {
title: '계약 삭제',
description: '이 계약을 삭제하시겠습니까? 이 작업은 되돌릴 수 없습니다.',
},
},
};