umami/hooks/useUser.js
2023-05-17 23:20:06 -07:00

12 lines
206 B
JavaScript

import useStore, { setUser } from 'store/app';
const selector = state => state.user;
export function useUser() {
const user = useStore(selector);
return { user, setUser };
}
export default useUser;