import type { Block } from 'payload'

export const ScriptSectionBlock: Block = {
  slug: 'script-section',
  dbName: 'script_sec',
  labels: {
    singular: 'Script Section',
    plural: 'Script Sections',
  },
  fields: [
    {
      name: 'sectionType',
      type: 'select',
      dbName: 'sec_type',
      required: true,
      label: 'Section Type',
      options: [
        { label: 'Hook', value: 'hook' },
        { label: 'Intro', value: 'intro_ident' },
        { label: 'Content', value: 'content_part' },
        { label: 'Outro', value: 'outro' },
      ],
    },
    {
      name: 'duration',
      type: 'text',
      label: 'Duration',
    },
  ],
}
