 
   @propTypes =
     owned: React.PropTypes.array
-    shared: React.PropTypes.array
+    shared: React.PropTypes.shape
+      permanent: React.PropTypes.array
+      collaboration: React.PropTypes.array
     disabled: React.PropTypes.bool
     hasTemplate: React.PropTypes.bool
     canCreateStacks: React.PropTypes.bool

  renderRowAtIndex: (sectionIndex) ->

    { owned, shared } = @props

    switch sections[sectionIndex]
      when 'owned'

    # owned resources is always rendered, even with no items (with empty
    # message), but shared resources will be shown only if there is at least 1
    # shared resource.
    { shared: { permanent, collaboration } } = @props

    return if permanent.length or collaboration.length then 2 else 1


  getRowCount: (sectionIndex) -> 1


  renderEmptySectionAtIndex: (sectionIndex) ->
