/*
     __  __     ______     __         __         ______
    /\ \_\ \   /\  ___\   /\ \       /\ \       /\  __ \
    \ \  __ \  \ \  __\   \ \ \____  \ \ \____  \ \ \/\ \
     \ \_\ \_\  \ \_____\  \ \_____\  \ \_____\  \ \_____\
      \/_/\/_/   \/_____/   \/_____/   \/_____/   \/_____/

    My name is Vlad Goran
    Freelance web developer
    Available for contracts and consulting

    Scroll down to learn more...
*/

function mapStateToProps(state, ownProps) {
  const { slug } = ownProps.params;
  return {
    playlist: selectPlaylist(state, slug),
    userIsPatron: selectUserIsPatron(state),
    collectionIds: selectCollectionIds(state),
    imageAnnotation: selectPlaylistImageAnnotation(state, slug),
    pathname: ownProps.location.pathname,
    messages,
  };
}