()
| 4932 | }, [refresh]) |
| 4933 | |
| 4934 | const onInstall = async (): Promise<void> => { |
| 4935 | setBusy(true) |
| 4936 | setError(null) |
| 4937 | try { |
| 4938 | await window.zen.cliInstall() |
| 4939 | await refresh() |
| 4940 | } catch (err) { |
| 4941 | setError((err as Error).message) |
| 4942 | } finally { |
| 4943 | setBusy(false) |
| 4944 | } |
| 4945 | } |
| 4946 | |
| 4947 | const onUninstall = async (): Promise<void> => { |
| 4948 | setBusy(true) |
no test coverage detected