UNPKG

wickr-bedrock-bot

Version:

AWS Wickr's own Bedrock Bot

24 lines (23 loc) 715 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class ButtonHelper { static makeYesNoButton({ yesButtonAction = 'yes', noButtonAction = 'no', preferredIndex = -1 }) { return { buttons: [ { type: 'message', text: 'Yes', message: yesButtonAction, preferred: preferredIndex === 0, }, { type: 'message', text: 'No', message: noButtonAction, preferred: preferredIndex === 1, } ], }; } } exports.default = ButtonHelper;