hunk.code_window:     // Disable comment mode toggle for anonymous users
       setShouldHide(
         !shouldShow ||
           !currentUser ||
           currentUser.username === ANONYMOUS_USERNAME,
       );
     }, [location, currentUser]);
     return shouldHide;
   };
   type ToggleCommentModeButtonProps = {
  
hunk.labels: keep replace replace replace replace replace replace keep keep keep keep keep
hunk.after_edit:     setShouldHide(!shouldShow || currentUser?.username === ANONYMOUS_USERNAME);
     }, [location, currentUser, isEditorInitialized, isViewerInitialized]);
  
hunk.file_path: app/client/src/pages/Editor/ToggleModeButton.tsx
hunk.type: replace
file: export * from "ce/utils/adminSettingsHelpers";
  