const modal = {
title: 'User Feedback',
custom_id: 'feedback_modal',
components: [
{
type: MessageComponentTypes.ACTION_ROW,
components: [
{
type: MessageComponentTypes.INPUT_TEXT,
custom_id: 'subject',
style: TextStyleTypes.SHORT,
label: 'Subject',
placeholder: 'Brief summary',
required: true,
},
],
},
{
type: MessageComponentTypes.ACTION_ROW,
components: [
{
type: MessageComponentTypes.INPUT_TEXT,
custom_id: 'details',
style: TextStyleTypes.PARAGRAPH,
label: 'Details',
placeholder: 'Provide more information...',
min_length: 20,
max_length: 2000,
required: true,
},
],
},
],
};