import { useStateDataList } from '../RhinoProvider' ; param key function useRhinoValue < T > ( key ) { const stateDataList = useStateDataList ( ) ; if ( key in stateDataList ) { return stateDataList [ key ] . stateHook ( ) ; } throw new Error ( `${ key } is an invalid key` ) ; } export default useRhinoValue ;