mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-27 12:55:45 +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 };
|
||
|
}
|