
@Preview
@CustomDialog
export struct SelectTalkbackItemsDialog {
  controller: CustomDialogController
  currentDevTalkClick?: () => void
  IPCDevTalkClick?: () => void

  build() {
    Column() {
      Text($r('app.string.current_device_talk'))
        .fontSize(24)
        .width('100%')
        .textAlign(TextAlign.Center)
        .backgroundColor(Color.Gray)
        .fontColor(Color.White)
        .padding(4)
        .onClick(() => {
          if (this.currentDevTalkClick) {
            this.currentDevTalkClick()
          }
          this.controller.close()
        })
      Text($r('app.string.select_ipc_device_talk'))
        .fontSize(24)
        .width('100%')
        .textAlign(TextAlign.Center)
        .backgroundColor(Color.Gray)
        .fontColor(Color.White)
        .margin({ top: 10 })
        .padding(4)
        .onClick(() => {
          if (this.IPCDevTalkClick) {
            this.IPCDevTalkClick()
          }
          this.controller.close()
        })
    }.padding(6)
    .backgroundColor(Color.White)
  }
}