import { colors } from '@0x/react-shared'; import * as _ from 'lodash'; import * as React from 'react'; import { zIndex } from 'ts/style/z_index'; import { Container } from './container'; import { Overlay } from './overlay'; import { Text } from './text'; export interface MultiSelectItemConfig { value: string; displayText: React.ReactNode; onClick?: () => void; } export interface MultiSelectProps { selectedValues: string[]; items: MultiSelectItemConfig[]; backgroundColor?: string; textColor?: string; } export class MultiSelect extends React.Component { public static defaultProps = { backgroundColor: colors.white, textColor: colors.darkGrey, }; public render(): React.ReactNode { const { items, backgroundColor, selectedValues } = this.props; return ( {_.map(items, item => ( ))} ); } } export interface MultiSelectItemProps { displayText: React.ReactNode; isSelected?: boolean; onClick?: () => void; } export const MultiSelectItem: React.StatelessComponent = ({ displayText, isSelected, onClick, }) => ( {displayText} );