import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
const ListItem = props => {
const draggableBtn = (
);
const orderBtn = (
{`${props.index + 1}.`}
);
return (
{props.draggable && draggableBtn}
);
};
ListItem.propTypes = {
selected: PropTypes.bool.isRequired,
dragging: PropTypes.bool,
draggable: PropTypes.bool,
onClick: PropTypes.func.isRequired,
name: PropTypes.string.isRequired,
index: PropTypes.number.isRequired,
};
ListItem.defaultProps = {
draggable: false,
dragging: false,
};
export default ListItem;