hunk.code_window:     const pageId = new URLSearchParams(params).get("importTo");
       const page = pages.find(page => page.pageId === pageId);
       if (pageId) {
         const newQueryName = createNewQueryName(actions, pageId);
         this.props.createAction({
  
hunk.labels: keep replace keep keep keep keep
hunk.file_path: app/client/src/pages/Editor/QueryEditor/QueryHomeScreen.tsx
hunk.type: replace
file: import React from "react";
  import PageLoadingBar from "pages/common/PageLoadingBar";
  import { retryPromise } from "utils/AppsmithUtils";
  
  class AppViewerLoader extends React.PureComponent<any, { Page: any }> {
    constructor(props: any) {
      super(props);
  
      this.state = {
        Page: null,
      };
    }
  
    componentDidMount() {
      retryPromise(() =>
        import(/* webpackChunkName: "AppViewer" */ "./index"),
      ).then(module => {
        this.setState({ Page: module.default });
      });
    }
  
    render() {
      const { Page } = this.state;
      return Page ? <Page {...this.props} /> : <PageLoadingBar />;
    }
  }
  
  export default AppViewerLoader;
  