import * as React from "react"; import * as fs from "fs-extra"; import { CONSTANTS } from "../constants"; export interface CardStateProps { bootFromScratch: () => void; } export class CardState extends React.Component { constructor(props: CardStateProps) { super(props); this.onReset = this.onReset.bind(this); } public render() { return (

Machine State

windows95 stores any changes to your machine (like saved files) in a state file. If you encounter any trouble, you can either reset your state or boot Windows 95 from scratch.

); } public async onReset() { if (fs.existsSync(CONSTANTS.STATE_PATH)) { await fs.remove(CONSTANTS.STATE_PATH); } } }