Function to load and save integration configuration


  1. connection: Connection
    The Connection for which the settings page is being rendered, or that is being updated.
  2. fields: SettingsField[] (optional)
    The fields to be updated by the user. On the first call, this parameter will be undefined or will be an empty array.

When the user clicks "Save", this parameter will be the fields that the user is saving, with their value properties populated with the values the user has input.


SettingsField[] or Promise<SettingsField[]>
A list of fields to render to the user. On the first call, this is the empty form to render to the user. On subsequent calls it should show feedback to the user about whether their choices have been saved, etc.

If this connection has no configuration, return an empty array.