(cmd: string, args?: InvokeArgs)
| 99 | } |
| 100 | |
| 101 | function createInvokeResource<R>(cmd: string, args?: InvokeArgs) { |
| 102 | return createResource(async () => { |
| 103 | return await invoke(cmd, args) as R; |
| 104 | }); |
| 105 | } |
| 106 | |
| 107 | function EmailConfigurator<P extends { on_save: () => void }>(props: P) { |
| 108 | const [smtp_config, { refetch: update_smtp_config }] = createInvokeResource< |
no outgoing calls
no test coverage detected