mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-16 02:05:04 +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 };
|
||
|
}
|