hunk.code_window: export function StackContainersDatatable({ environment, stackName }: Props) {
     const settings = useStore();
     const columns = useColumns(false);
     const hidableColumns = _.compact(
       columns.filter((col) => col.canHide).map((col) => col.id)
     );
  
hunk.labels: keep keep keep replace keep keep keep
hunk.after_edit:   const isGPUsColumnVisible = useShowGPUsColumn(environment.Id);
     const columns = useColumns(false, isGPUsColumnVisible);
  
hunk.file_path: app/react/docker/stacks/ItemView/StackContainersDatatable.tsx
hunk.type: replace
file: import _ from 'lodash';
  import { useMemo } from 'react';
  
  import { created } from './created';
  import { host } from './host';
  import { image } from './image';
  import { ip } from './ip';
  import { name } from './name';
  import { ownership } from './ownership';
  import { ports } from './ports';
  import { quickActions } from './quick-actions';
  import { stack } from './stack';
  import { state } from './state';
  import { gpus } from './gpus';
  
  export function useColumns(isHostColumnVisible: boolean) {
    return useMemo(
      () =>
        _.compact([
          name,
          state,
          quickActions,
          stack,
          image,
          created,
          ip,
          isHostColumnVisible && host,
          gpus,
          ports,
          ownership,
        ]),
      [isHostColumnVisible]
    );
  }
  