import { PrefsWriter } from "./SettingToggle" ; export function useLocalStoragePrefs ( ) { function isMarked ( key , defaultValue ? ) { const value = localStorage . getItem ( key ) ; if ( value ) { return value === 'true' ; } return defaultValue || false ; } function mark ( key , value ) { localStorage . setItem ( key , `${ value }` ) ; } async function commit ( ) { } return { isMarked , mark , commit } ; }