2016-06-16 19:20:36 -03:00
|
|
|
import React, { PropTypes } from 'react';
|
2016-05-30 16:55:32 -07:00
|
|
|
|
2016-06-16 19:20:36 -03:00
|
|
|
export default function StringPreview({ value }) {
|
2016-11-11 17:54:58 -02:00
|
|
|
return <span>{value ? value.toString() : null}</span>;
|
2016-05-30 16:55:32 -07:00
|
|
|
}
|
2016-06-16 19:20:36 -03:00
|
|
|
|
|
|
|
StringPreview.propTypes = {
|
|
|
|
value: PropTypes.node,
|
|
|
|
};
|