(remember: boolean)
| 993 | const approval = useElicitationApproval(interaction.requestedSchema); |
| 994 | |
| 995 | const approve = (remember: boolean) => { |
| 996 | const content = approval.content(); |
| 997 | if (content === null) return; |
| 998 | if (remember && pending.grantKey !== null) rememberApprovalGrant(pending.grantKey); |
| 999 | onComplete({ action: "accept", content }); |
| 1000 | }; |
| 1001 | |
| 1002 | const openUrl = () => { |
| 1003 | if (!url) return; |
no test coverage detected