hunk.code_window: import com.appsmith.external.models.DatasourceStructure;
   import reactor.core.publisher.Mono;
   public interface CustomDatasourceStorageStructureRepositoryCE {
       Mono<Void> updateStructure(String datasourceId, String environmentId, DatasourceStructure structure);
   }
hunk.labels: keep keep keep keep keep replace keep
hunk.after_edit:     Mono<Integer> updateStructure(String datasourceId, String environmentId, DatasourceStructure structure);
  
hunk.file_path: app/server/appsmith-server/src/main/java/com/appsmith/server/repositories/ce/CustomDatasourceStorageStructureRepositoryCE.java
hunk.type: replace
file: import { MAX_MODAL_WIDTH_FROM_MAIN_WIDTH } from "constants/WidgetConstants";
  import { useSelector } from "react-redux";
  import { getCanvasWidth } from "selectors/editorSelectors";
  
  export const useMaxModalWidth = () => {
    const mainCanvasWidth = useSelector(getCanvasWidth);
    return (mainCanvasWidth || 0) * MAX_MODAL_WIDTH_FROM_MAIN_WIDTH;
  };
  export const useModalWidth = () => {
    const maxModalWidth = useMaxModalWidth();
    const getModalWidth = (width = 0) => {
      return Math.min(maxModalWidth, width);
    };
    return getModalWidth;
  };
  