umami/hooks/useUser.js
2023-01-04 21:20:24 -08:00

10 lines
189 B
JavaScript

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