import { ContactsSubjects } from '../runtime'; import type { IContactScheme } from '../types'; import { reportReasonsItems } from '../lib'; export const contactFormsScheme: Array = [ { subject: ContactsSubjects.Feedback, }, { subject: ContactsSubjects.Bugs, items: [ { type: 'text', value: 'bugUrl', label: 'bug_url', wide: true, required: true, }, ] }, { subject: ContactsSubjects.DMCA, items: [ { type: 'text', value: 'firstName', label: 'first_name', required: true, }, { type: 'text', value: 'lastName', label: 'last_name', required: true, }, { type: 'text', value: 'company', label: 'your_company', wide: true, }, { type: 'text', value: 'address', label: 'address', required: true, }, { type: 'tel', value: 'phone', label: 'phone', required: true, }, { type: 'textarea', value: 'reportLinks', label: 'report_links', required: true, wide: true, }, { type: 'checkbox', value: 'confirmTrue', required: true, wide: true, text: 'confirm_text', }, { type: 'checkbox', value: 'confirmOwner', required: true, wide: true, text: 'confirmowner_text', }, ] }, { subject: ContactsSubjects.Report, items: [ ...(reportReasonsItems).map((value, index) => ({ type: 'radio', value, text: `reason_${index + 1}`, wide: true, })), { type: 'textarea', value: 'reportLinks', label: 'report_links', required: true, wide: true, }, ], }, { subject: ContactsSubjects.Advertising, }, ];