Function OneButton

Represents a button component with a popover that displays a form.

  • Type Parameters

    • Data extends {} = any

      The type of data for the form.

    • Payload extends unknown = any

      The type of payload for the button handler.

    Parameters

    • props: IOneButtonProps<Data, Payload>

      The properties of the button component.

    Returns null | Element

    • Returns null if loading or error, otherwise returns the button component with popover.