 React = require 'react'
 apiClient = require 'panoptes-client/lib/api-client'
-PromiseRenderer = require '../../components/promise-renderer'
 CollectionCard = require '../../partials/collection-card'
 Translate = require 'react-translate-component'
 {Link} = require 'react-router'

      baseLink += "projects/#{@props.project.slug}/"
    "#{baseLink}collections/#{collection.slug}"

  listCollections: ->
    query = {}
    if @props.params?.collection_owner?
      query.owner = @props.params.collection_owner
    else if @props.params?.profile_name?
      query.owner = @props.params.profile_name
    if @props.project?
      query.project_ids = @props.project.id
    query.favorite = @props.favorite
    Object.assign query, @props.location.query

    apiClient.type('collections').get query

  render: ->
    {location} = @props

          user={@props.user}
          project={@props.project}
          baseType={@props.baseType} />}
        {if @state.collections?.length > 0
          meta = @state.collections[0].getMeta()
          <div>
            <div className="resource-results-counter collection-results-counter">
              <p>
