import React from 'react' import { KEY, options } from 'App/dev/console' import { Switch } from 'UI'; function getDefaults() { const storedString = localStorage.getItem(KEY) if (storedString) { const storedOptions = JSON.parse(storedString) return storedOptions.verbose } else { return false } } function DebugLog() { const [showLogs, setShowLogs] = React.useState(getDefaults) const onChange = (checked: boolean) => { setShowLogs(checked) options.logStuff(checked) } return (