(publicKey?: string, agent?: string)
| 52 | } |
| 53 | |
| 54 | function handleAccept(publicKey?: string, agent?: string) { |
| 55 | const inviteURL = new URL(resource.getSubject()); |
| 56 | |
| 57 | if (publicKey) { |
| 58 | inviteURL.searchParams.set('public-key', publicKey); |
| 59 | } else { |
| 60 | inviteURL.searchParams.set('agent', agent); |
| 61 | } |
| 62 | history.push(openURL(inviteURL.href)); |
| 63 | } |
| 64 | |
| 65 | return ( |
| 66 | <ContainerNarrow about={resource.getSubject()}> |
no test coverage detected