<div local-class="crate-toml-copy {{if @inline "inline" "block"}}" ...attributes>
  <CopyButton
    @clipboardText={{@copyText}}
    @success={{perform this.showNotificationTask true}}
    @error={{perform this.showNotificationTask false}}
    @title="Copy Cargo.toml snippet to clipboard"
  >
    {{svg-jar "copy" alt="Copy Cargo.toml snippet to clipboard"}}
    <div local-class="copy-notification {{if this.showSuccess "copy-success" "copy-failure"}}">
      {{#if this.showNotification}}
        {{#if this.showSuccess}}
          Copied!
        {{else}}
          An error occured. Please use CTRL+C.
        {{/if}}
      {{/if}}
    </div>
  </CopyButton>
</div>
<div local-class="crate-toml-copy {{if @inline "inline" "block"}}" ...attributes>
  <CopyButton
    @clipboardText={{@copyText}}
    @success={{perform this.showNotificationTask true}}
    @error={{perform this.showNotificationTask false}}
    @title="Copy Cargo.toml snippet to clipboard"
  >
    {{svg-jar "copy" alt="Copy Cargo.toml snippet to clipboard"}}
    {{#if this.showNotification}}
      <div local-class="copy-notification {{if this.showSuccess "copy-success" "copy-failure"}}">
        {{#if this.showSuccess}}
          Copied!
        {{else}}
          An error occured. Please use CTRL+C.
        {{/if}}
      </div>
    {{/if}}
  </CopyButton>
</div>
Remove `.copy-notification` element from the DOM when empty
CrateTomlCopy: Remove `.copy-notification` element from the DOM when empty
