import { DataCaptureFieldType } from '@komi-app/shared-types'

export const DATA_CAPTURE_FIELD_TITLE = {
  [DataCaptureFieldType.INPUT]: 'Short Answer Text Field',
  [DataCaptureFieldType.TEXTAREA]: 'Paragraph Text Field',
  [DataCaptureFieldType.PHONE_NUMBER]: 'Phone Number',
  [DataCaptureFieldType.EMAIL_ADDRESS]: 'Email Address',
  [DataCaptureFieldType.SELECT_SINGLE]: 'Single Choice Selection',
  [DataCaptureFieldType.SELECT_MULTIPLE]: 'Multiple Choice Selection',
  [DataCaptureFieldType.SELECT_COUNTRY]: 'Country Dropdown',
  [DataCaptureFieldType.SELECT_DATE]: 'Date Selection',
  [DataCaptureFieldType.LEGALS]: 'Legals'
}
export const DEFAULT_FIELDS = [
  {
    edit: false,
    type: DataCaptureFieldType.INPUT,
    name: DataCaptureFieldType.INPUT,
    label: 'Name',
    required: false,
    order: 0
  },
  {
    edit: false,
    type: DataCaptureFieldType.EMAIL_ADDRESS,
    name: DataCaptureFieldType.EMAIL_ADDRESS,
    label: 'Enter email',
    required: false,
    order: 1
  }
]

export const LAYOUT = {
  LEFT: 'left',
  CENTER: 'center'
}
