2022-02-23 07:47:59 +01:00
|
|
|
import useStore, { setUser } from 'store/app';
|
|
|
|
|
|
|
|
const selector = state => state.user;
|
|
|
|
|
|
|
|
export default function useUser() {
|
|
|
|
const user = useStore(selector);
|
|
|
|
|
2023-01-05 06:20:24 +01:00
|
|
|
return { user, setUser };
|
2022-02-23 07:47:59 +01:00
|
|
|
}
|