import {
  DATA_FORM_LAYOUT,
  DataCaptureFormItem
} from 'models/talent/talent-profile-module.model'
import { ModuleInitParams } from '../createModule'
import {
  ModuleType,
  DataCaptureFieldType,
  DataCaptureFormType
} from '@komi-app/shared-types'

export const contactFormItem: DataCaptureFormItem = {
  layout: DATA_FORM_LAYOUT.left,
  hasImage: false,
  enableImage: false,
  title: 'Contact Form',
  subTitle: 'Description',
  formType: DataCaptureFormType.CONTACT_FORM,
  emailNotifications: true,
  form: {
    title: 'Contact Form',
    fields: [
      {
        type: DataCaptureFieldType.INPUT,
        name: 'INPUT',
        label: 'Name',
        required: false,
        order: 0,
        options: []
      },
      {
        type: DataCaptureFieldType.EMAIL_ADDRESS,
        name: 'EMAIL_ADDRESS',
        label: 'Email',
        required: false,
        order: 1,
        options: []
      },
      {
        type: DataCaptureFieldType.TEXTAREA,
        name: 'MESSAGE',
        label: 'Message',
        required: false,
        order: 2,
        options: []
      }
    ],
    name: 'Contact Form'
  },
  order: 0,
  visible: true
}

export const contactFormModule: ModuleInitParams = {
  name: 'Contact Form',
  type: ModuleType.FORM_DATA,
  data: {
    items: [contactFormItem]
  }
}
