hunk.code_window:       id: "APPSMITH_FORM_CALLOUT_BANNER",
         category: SettingCategories.FORM_AUTH,
         subCategory: SettingSubCategories.FORMLOGIN,
         controlType: SettingTypes.LINK,
         label:
           "User emails are not verified. This can lead to a breach in your application.",
         url: SIGNUP_RESTRICTION_DOC,
         calloutType: "Warning",
       },
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:         "The form login method does not verify the emails of users that create accounts.",
  
hunk.file_path: app/client/src/ce/pages/AdminSettings/config/authentication/index.tsx
hunk.type: replace
file: import { TourType } from "entities/Tour";
  import { useDispatch, useSelector } from "react-redux";
  import { AppState } from "reducers";
  import { getActiveTourIndex, getActiveTourType } from "selectors/tourSelectors";
  import { proceedToNextTourStep } from "actions/tourActions";
  
  export const useIsTourStepActive = (
    activeTourStepConfig: { [key in TourType]?: any },
  ) => {
    const activeTourType = useSelector(getActiveTourType);
    const expectedActiveStep =
      activeTourType &&
      activeTourStepConfig &&
      activeTourStepConfig[activeTourType];
  
    const isCurrentStepActive = useSelector(
      (state: AppState) => getActiveTourIndex(state) === expectedActiveStep,
    );
  
    return isCurrentStepActive;
  };
  
  const useProceedToNextTourStep = (
    activeTourStepConfig: { [key in TourType]?: any },
  ) => {
    const dispatch = useDispatch();
  
    const isActive = useIsTourStepActive(activeTourStepConfig);
  
    return () => isActive && dispatch(proceedToNextTourStep());
  };
  
  export default useProceedToNextTourStep;
  