(resourceId?: string)
| 88 | }; |
| 89 | |
| 90 | const handleDelete = async (resourceId?: string) => { |
| 91 | if (!resourceId) return; |
| 92 | const res = await fetch( |
| 93 | agentNativePath(`/_agent-native/resources/${resourceId}`), |
| 94 | { |
| 95 | method: "DELETE", |
| 96 | }, |
| 97 | ); |
| 98 | if (res.ok) onRefresh(); |
| 99 | }; |
| 100 | |
| 101 | return ( |
| 102 | <section className="rounded-2xl border bg-card p-5"> |
no test coverage detected