import { Dispatch , SetStateAction } from "react" ; import usePersistedState from "./usePersistedState" ; import { useCoralContext } from "coral-framework/lib/bootstrap" ; function usePersistedLocalState < T > ( key ) { const { localStorage } = useCoralContext ( ) ; return usePersistedState ( key , localStorage ) ; } export default usePersistedLocalState ;