import { filterByExtensions } from './utils'

export function partMesh (addressbar, params) {
  return filterByExtensions(addressbar.get('modelUrl'), params.get('extensions', 'meshes'))
// .map(data =>  ({src:'http', uri:data})  )
}

export function partSource (addressbar, params) {
  return filterByExtensions(addressbar.get('sourceUrl'), params.get('extensions', 'sources'))
// .map(data =>  ({src:'http', uri:data})  )
}

// for other formats like gcode etc
export function other (addressbar, params) {
  return filterByExtensions(addressbar.get('sourceUrl'), params.get('extensions', 'other'))
}
