(event: React.FormEvent)
| 47 | } = useMutation(findKeyInsight); |
| 48 | |
| 49 | async function makeThread(event: React.FormEvent) { |
| 50 | event.preventDefault(); |
| 51 | |
| 52 | setIsError(false); |
| 53 | |
| 54 | if (url) { |
| 55 | try { |
| 56 | await mutateAsync({ url }); |
| 57 | } catch (e) { |
| 58 | console.error(e); |
| 59 | setIsError(true); |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | return ( |
| 65 | <Box |
nothing calls this directly
no outgoing calls
no test coverage detected