minor reorg/cleanup

This commit is contained in:
austinried
2022-04-28 15:41:45 +09:00
parent adcda47007
commit e40de711c1
29 changed files with 403 additions and 386 deletions
+15
View File
@@ -0,0 +1,15 @@
import { useStore } from '@app/state/store'
const useClient = () => {
const client = useStore(store => store.client)
return () => {
if (!client) {
throw new Error('no client!')
}
return client
}
}
export default useClient