content: import {MosaicRetrievePanel} from 'app/home/body/process/recipe/mosaic/panels/retrieve/retrievePanel'
  import {RecipeActions} from 'app/home/body/process/recipe/planetMosaic/planetMosaicRecipe'
  import {compose} from 'compose'
  import {getGroupedBandOptions} from 'app/home/body/process/recipe/planetMosaic/bands'
  import {withRecipe} from 'app/home/body/process/recipeContext'
  import React from 'react'
  
  const mapRecipeToProps = recipe => ({recipe})
  
  class _Retrieve extends React.Component {
      render() {
          return (
              <MosaicRetrievePanel
                  bandOptions={this.bandOptions()}
                  defaultScale={3}
                  ticks={[3, 5, 10, 30, 100]}
                  toSepal
                  toEE
                  onRetrieve={retrieveOptions => this.retrieve(retrieveOptions)}
              />
          )
      }
  
      bandOptions() {
          const {recipe} = this.props
          return getGroupedBandOptions(recipe)
      }
  
      retrieve(retrieveOptions) {
          const {recipeId} = this.props
          return RecipeActions(recipeId).retrieve(retrieveOptions)
      }
  }
  
  export const Retrieve = compose(
      _Retrieve,
      withRecipe(mapRecipeToProps)
  )
  
  Retrieve.propTypes = {}
  