mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-02 14:11:07 +01:00
12 lines
206 B
JavaScript
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;
|