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