-def input_block(label, name, placeholder, optional=False):
+ if extra:
+ block['action_id'] = extra
+
+ return block
+
+def accessory_block(main, accessory):
+ return {
+ **main,
+ "accessory": {
+ **accessory
+ }
+ }
+
+def input_block(label, name, placeholder, initial_value=None, optional=False):
+
+ element = {
+ "type": "plain_text_input",
+ "action_id": name,
+ "placeholder": {
+ "type": "plain_text",
+ "text": placeholder,
+ }
+ }
+
+ if initial_value:
+ element["initial_value"] = initial_value
+