{{#if this.workflow}}
  <WorkflowThread class="withdrawal-workflow" @workflow={{this.workflow}} @onClose={{@onClose}}>
    <:before-content>
      <Boxel::ExpandableBanner
        @icon="info"
        @summary="Make a withdrawal"
        open
      >
        <div class="withdrawal-workflow__banner">
          <p>
            The funds you wish to withdraw must be available in your {{network-display-info "layer2" "fullName"}} wallet and will
            be added to your {{network-display-info "layer1" "fullName"}} wallet.
          </p>
        </div>
      </Boxel::ExpandableBanner>
    </:before-content>
  </WorkflowThread>
{{/if}}

<Listener
  @emitter={{this.layer1Network}}
  @event="disconnect"
  @action={{this.onDisconnect}}
/>
<Listener
  @emitter={{this.layer2Network}}
  @event="disconnect"
  @action={{this.onDisconnect}}
/>
<Listener
  @emitter={{this.layer1Network}}
  @event="account-changed"
  @action={{this.onAccountChanged}}
/>
<Listener
  @emitter={{this.layer2Network}}
  @event="account-changed"
  @action={{this.onAccountChanged}}
/>
