@antadesign/anta
    Preparing search index...

    Function useCopyFeedbackUnreviewed

    • Copy-feedback state for ButtonCopy / MenuItemCopy (and any future copy preset). The <a-button> / <a-menu-item> element performs the clipboard write and fires a copydone event; this hook holds the transient result and maps it to the icon + tone the wrapper renders: a check / success on success, an x / critical on failure, otherwise the caller's own values. Returns the handleCopied listener the wrapper wires to onCopied.

      Kept here (not duplicated per preset) so the timing, glyph choice, and timer cleanup live in one place. Hooks come through the jsx-runtime indirection, so a custom non-React runtime supplies its own via configure().

      Parameters

      • icon: undefined | (keyof IconShapes)
      • tone: string | undefined
      • OptionalonCopied: (ok: boolean) => void

      Returns {
          shownIcon: undefined | (keyof IconShapes);
          shownTone: string | undefined;
          handleCopied: (ok: boolean) => void;
      }