import * as React from 'react';
import { Chip, Grid, StyleRulesCallback, withStyles } from '@material-ui/core';
import { DragSource, DragSourceSpec, DragSourceCollector, ConnectDragSource, DropTarget, DropTargetSpec, DropTargetCollector, ConnectDropTarget } from 'react-dnd';
-import { compose, noop } from 'lodash/fp';
+import { compose } from 'lodash/fp';
import { WithStyles } from '@material-ui/core/styles';
interface ChipsProps<Value> {
values: Value[];
deletable?: boolean;
orderable?: boolean;
onChange: (value: Value[]) => void;
+ clickable?: boolean;
}
type CssRules = 'root';
onDelete={this.props.deletable
? this.deleteValue(value)
: undefined}
+ clickable={this.props.clickable}
label={this.props.getLabel ?
this.props.getLabel(value)
: typeof value === 'object'