hunk.code_window: 		return errors.Wrap(err, "failed to create env file")
   	}
   	filePaths := stackutils.GetStackFilePaths(stack, false)
   	err = manager.deployer.Deploy(ctx, filePaths, libstack.DeployOptions{
   		Options: libstack.Options{
   			WorkingDir:  stack.ProjectPath,
  
hunk.labels: keep keep keep replace keep keep keep
hunk.after_edit: 	filePaths := stackutils.GetStackFilePaths(stack, true)
  
hunk.file_path: api/exec/compose_stack.go
hunk.type: replace
file: import { ComponentType } from 'react';
  
  export function withEdition<T>(
    WrappedComponent: ComponentType<T>,
    edition: 'BE' | 'CE'
  ): ComponentType<T> {
    // Try to create a nice displayName for React Dev Tools.
    const displayName =
      WrappedComponent.displayName || WrappedComponent.name || 'Component';
  
    function WrapperComponent(props: T) {
      if (process.env.PORTAINER_EDITION !== edition) {
        return null;
      }
  
      return <WrappedComponent {...props} />;
    }
  
    WrapperComponent.displayName = `with${edition}Edition(${displayName})`;
  
    return WrapperComponent;
  }
  