Stop nodes in settings

This commit is contained in:
Tony Giorgio
2023-05-12 20:57:55 -05:00
parent cd3784d9f0
commit f38fcf5a14
2 changed files with 24 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
import { Button, Card, NiceP, VStack } from "~/components/layout";
import { useMegaStore } from "~/state/megaStore";
import { downloadTextFile } from "~/utils/download";
export function Restart() {
const [state, _] = useMegaStore()
async function handleStop() {
const result = await state.mutiny_wallet?.stop()
}
return (
<Card>
<VStack>
<NiceP>Something *extra* screwy going on? Stop the nodes!</NiceP>
<Button onClick={handleStop}>Stop</Button>
</VStack>
</Card>
)
}