| 72 | }; |
| 73 | |
| 74 | interface ButtonBase { |
| 75 | /** The text inside the button. */ |
| 76 | children: string; |
| 77 | /** |
| 78 | * A Confirm component that defines an optional confirmation dialog |
| 79 | * after the button is clicked. |
| 80 | */ |
| 81 | confirm?: ReactElement; |
| 82 | /** |
| 83 | * Indicates whether emojis in the button should be escaped into the colon emoji format. |
| 84 | */ |
| 85 | emoji?: boolean; |
| 86 | /** Decorates buttons with alternative visual color schemes. Use this option with restraint. */ |
| 87 | style?: undefined | "danger" | "primary"; |
| 88 | /** |
| 89 | * A URL to load in the user's browser when the button is clicked. |
| 90 | * Maximum length for this field is 3000 characters. If you're using |
| 91 | * url, you'll still receive an interaction payload and will need to |
| 92 | * send an acknowledgement response. |
| 93 | */ |
| 94 | url?: string; |
| 95 | } |
| 96 | |
| 97 | interface ButtonWithOnClick extends ButtonBase { |
| 98 | /** A callback ran when the button is clicked */ |
nothing calls this directly
no outgoing calls
no test coverage detected