2016-11-11 17:54:58 -02:00
|
|
|
import React, { PropTypes } from 'react';
|
2016-11-23 16:23:32 -02:00
|
|
|
import previewStyle from './defaultPreviewStyle';
|
2016-09-12 11:14:21 +02:00
|
|
|
|
2016-11-11 17:54:58 -02:00
|
|
|
export default function TextPreview({ value }) {
|
2016-11-23 16:23:32 -02:00
|
|
|
return <div style={previewStyle}>{value ? value.toString() : null}</div>;
|
2016-09-12 11:14:21 +02:00
|
|
|
}
|
2016-11-11 17:54:58 -02:00
|
|
|
|
|
|
|
TextPreview.propTypes = {
|
|
|
|
value: PropTypes.node,
|
|
|
|
};
|