2021-07-28 07:02:11 +00:00
|
|
|
import { AppState } from "reducers";
|
|
|
|
|
|
|
|
|
|
export const getIsOnboardingHelperVisible = (state: AppState) => {
|
|
|
|
|
const urlSearchParams = new URL(window.location.href).searchParams;
|
|
|
|
|
const isCommentModeInUrl = urlSearchParams.get("isCommentMode");
|
|
|
|
|
return state.ui.onBoarding.showHelper && !isCommentModeInUrl;
|
|
|
|
|
};
|
2021-08-23 07:10:26 +00:00
|
|
|
|
|
|
|
|
export const showWelcomeScreen = (state: AppState) =>
|
|
|
|
|
state.ui.onBoarding.showOnboardingLoader;
|