import { BotonicContext } from '@botonic/core'
import { MessageType } from '@botonic/shared'

import { CUSTOM_MESSAGE_TYPES } from '../../../shared/constants'

export async function <%= propertyName %>Output({ sendMessages }: BotonicContext) {
  await sendMessages([
    {
      type: MessageType.Custom,
      data: {
        name: CUSTOM_MESSAGE_TYPES.<%= constantName %>,
        props: {
          // Add your custom props here
          // Example: title: 'Hello from <%= className %>!'
        },
      },
    },
  ])
  return {
    status: 200,
    response: 'OK',
  }
}
