import { useState } from 'react' import { linkClasses } from 'shared/components/navigation/primary.js' const ClearXray = props => { const val = props.gist[props.setting] const dflt = props.dflt const [value, setValue] = useState(val) const toggle = (evt) => { props.updateGist([props.setting], !value) setValue(!value) } return (