import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Label from 'Components/Label'; import IconButton from 'Components/Link/IconButton'; import Link from 'Components/Link/Link'; import { icons, kinds } from 'Helpers/Props'; import tagShape from 'Helpers/Props/Shapes/tagShape'; import styles from './TagInputTag.css'; class TagInputTag extends Component { // // Listeners onDelete = () => { const { index, tag, onDelete } = this.props; onDelete({ index, id: tag.id }); }; onEdit = () => { const { index, tag, onEdit } = this.props; onEdit({ index, id: tag.id, value: tag.name }); }; // // Render render() { const { tag, kind, canEdit } = this.props; return (