// Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/

import type { TicketArticleActionPlugin, TicketArticleType } from './types.ts'

const actionPlugin: TicketArticleActionPlugin = {
  order: 100,

  addTypes() {
    const type: TicketArticleType = {
      apps: ['mobile', 'desktop'],
      value: 'web',
      label: __('Web'),
      buttonLabel: __('Add reply'),
      icon: 'web',
      view: {
        customer: ['change'],
      },
      fields: {
        body: {
          required: true,
        },
        attachments: {},
      },
      internal: false,
    }
    return [type]
  },
}

export default actionPlugin
