2016-11-17 04:08:37 -08:00
|
|
|
import React, { PropTypes } from 'react';
|
2016-11-23 16:23:32 -02:00
|
|
|
import previewStyle from './defaultPreviewStyle';
|
2016-11-17 04:08:37 -08:00
|
|
|
|
|
|
|
export default function SelectPreview({ value }) {
|
2016-11-23 16:23:32 -02:00
|
|
|
return <div style={previewStyle}>{value ? value.toString() : null}</div>;
|
2016-11-17 04:08:37 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
SelectPreview.propTypes = {
|
|
|
|
value: PropTypes.string,
|
|
|
|
};
|