add save feature

This commit is contained in:
Ole Morud
2022-08-25 23:55:51 +02:00
parent c1bdbc7060
commit 587eb27908
2 changed files with 36 additions and 0 deletions

View File

@@ -98,6 +98,9 @@ function Board() {
<IconButton onClick={() => step()}>
<KeyboardDoubleArrowRightIcon />
</IconButton>
<IconButton href={save(program)} download="save.json">
<SaveIcon />
</IconButton>
</Grid>
<Grid item xs={4}>
<Typography>output: {program.output}</Typography>