import React from 'react' import PropTypes from 'prop-types' import ImmutablePropTypes from 'react-immutable-proptypes' import ImmutablePureComponent from 'react-immutable-pure-component' import { CX } from '../constants' import Button from './button' import Icon from './icon' import Image from './image' import Text from './text' class Album extends React.PureComponent { handleOnClick = (e) => { // } handleOnOpenAlbumCreation = () => { } render() { const { album, isAddable, isDummy, } = this.props const title = isAddable ? 'New album' : 'Album title' const subtitle = isAddable ? '' : '10 Items' const to = isAddable ? undefined : `/photos` return (
{ !isDummy && }
) } } Album.propTypes = { album: ImmutablePropTypes.map, isAddable: PropTypes.bool, isDummy: PropTypes.bool, } export default Album