 Group.displayName = 'Group'
 
 export GroupButtons = React.memo ({group, can, sortBy, clusterBy, tags}) ->
-  superuser = useTracker ->
-    Session.get 'super'
-  , []
+  #superuser = useTracker ->
+  #  Session.get 'super'
+  #, []
   user = useTracker ->
     Meteor.user()
   , []

  , []
  [dropdown, setDropdown] = useState false

  onSortSetDefault = (e) ->
    e.stopPropagation()
    unparsed = unparseSort sortBy
    console.log "Setting default sort for #{group} to #{unparsed}"
    Meteor.call 'groupDefaultSort', group, unparsed
  onRename = (e) ->
    Modal.show 'groupRename'
  onPost = (e) ->

GroupButtons.displayName = 'GroupButtons'

export GroupSorts = React.memo ({group, can, sortBy, clusterBy, tags}) ->
  superuser = useTracker ->
    Session.get 'super'
  , []
  onSortSetDefault = (e) ->
    e.stopPropagation()
    unparsed = unparseSort sortBy
    console.log "Setting default sort for #{group} to #{unparsed}"
    Meteor.call 'groupDefaultSort', group, unparsed
  dropSpec = (key) ->
    accept: 'group-sort'
    drop: (item, monitor) ->
