Files
mutiny-web/src/components/Restart.tsx
2023-05-23 19:03:52 -05:00

21 lines
505 B
TypeScript

import { Button, Card, NiceP, VStack } from "~/components/layout";
import { useMegaStore } from "~/state/megaStore";
export function Restart() {
const [state, _] = useMegaStore()
async function handleStop() {
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>
)
}