mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-27 04:45:54 +01:00
10 lines
189 B
JavaScript
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 };
|
|
}
|