{{!
  Copyright IBM Corp. 2016, 2025
  SPDX-License-Identifier: BUSL-1.1
}}

<div class="console-ui-output">
  <JsonEditor @value={{stringify this.content}} @readOnly={{true}} />
  <Hds::Copy::Button
    @text="Copy"
    @isIconOnly={{true}}
    @textToCopy={{stringify this.content}}
    @onError={{(fn (set-flash-message "Clipboard copy failed. The Clipboard API requires a secure context." "danger"))}}
    class="transparent icon-grey-500 top-right-absolute"
  />
</div>