from typing import List


def create_table_dropdown(order_list: List[dict], order_name: str) -> dict:
    """ Create the dropdown-options in the context of assembling orders.

    Syntax of the returned dictionary is based on dash.
    """

    dropdown_options = {
        'component': {
            'options': []
        }
    }

    for order in order_list:
        if (name := order['name']) != order_name:
            dropdown_options['component']['options'].append(
                {
                    'label': name,
                    'value': name
                }
            )

    return dropdown_options