hunk.code_window:   const platform = getPlatformType(environment.Type);
     const component = getComponent(platform, environment);
     return (
       <span className="blocklist-item-desc flex items-center gap-10">
         {component}
       </span>
     );
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:     <span className="blocklist-item-desc flex items-center gap-x-10 gap-y-2 flex-wrap">
  
hunk.file_path: app/react/portainer/HomeView/EnvironmentList/EnvironmentItem/EnvironmentStats.tsx
hunk.type: replace
file: import { useQuery } from 'react-query';
  
  import axios, { parseAxiosError } from '@/portainer/services/axios';
  
  import { EdgeUpdateResponse, StatusType } from '../types';
  
  import { queryKeys } from './query-keys';
  import { buildUrl } from './urls';
  
  export type EdgeUpdateListItemResponse = EdgeUpdateResponse & {
    status: StatusType;
    statusMessage: string;
  };
  
  async function getList(includeEdgeStacks?: boolean) {
    try {
      const { data } = await axios.get<EdgeUpdateListItemResponse[]>(buildUrl(), {
        params: { includeEdgeStacks },
      });
      return data;
    } catch (err) {
      throw parseAxiosError(
        err as Error,
        'Failed to get list of edge update schedules'
      );
    }
  }
  
  export function useList(includeEdgeStacks?: boolean) {
    return useQuery(queryKeys.list(includeEdgeStacks), () =>
      getList(includeEdgeStacks)
    );
  }
  