<header matDialogTitle
        class="adf-content-node-selector-dialog-title"
        data-automation-id="content-node-selector-title">{{title || data?.title}}
</header>

<section matDialogContent
         class="adf-content-node-selector-dialog-content">
    <adf-content-node-selector-panel
        [currentFolderId]="currentFolderId || data?.currentFolderId"
        [dropdownHideMyFiles]="dropdownHideMyFiles || data?.dropdownHideMyFiles"
        [dropdownSiteList]="dropdownSiteList || data?.dropdownSiteList"
        [rowFilter]="rowFilter || data?.rowFilter"
        [imageResolver]="imageResolver || data?.imageResolver"
        [isSelectionValid]="data?.isSelectionValid"
        (select)="onSelect($event)">
    </adf-content-node-selector-panel>
</section>

<footer matDialogActions class="adf-content-node-selector-actions">
    <button
        mat-button
        class="adf-content-node-selector-actions-cancel"
        (click)="close()"
        data-automation-id="content-node-selector-actions-cancel">{{ 'NODE_SELECTOR.CANCEL' | translate }}
    </button>

    <button mat-button
        [disabled]="!chosenNode"
        class="adf-content-node-selector-actions-choose"
        (click)="onClick()"
        data-automation-id="content-node-selector-actions-choose">{{ buttonActionName | translate }}
    </button>

</footer>

