import React, { PropTypes } from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { Link } from 'react-router' import PlaylistGrid from '../../components/PlaylistGrid' import Header from '../../components/Header' import * as mopidyActions from '../../services/mopidy/actions' import * as spotifyActions from '../../services/spotify/actions' class LibraryPlaylists extends React.Component{ constructor(props) { super(props); } render(){ if( !this.props.playlists ) return null var columns = [ { name: 'name', width: '30'}, { name: 'tracks.total', width: '15'}, { name: 'can_edit', width: '15'}, { name: 'uri', width: '40'} ] return (