import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
import { useActions, useAppState } from "../../overmind";
import { useEffect } from "react";
export const Done = () => {
    const state = useAppState();
    const actions = useActions();
    useEffect(() => {
        if (state.api.auth.authorized) {
            actions.routing.historyPush({ location: "/explore" });
        }
    }, [state.api.auth.authorized]);
    return _jsx(_Fragment, {});
};
//# sourceMappingURL=Done.js.map