static-cms/src/components/Widgets/NumberPreview.js

10 lines
210 B
JavaScript
Raw Normal View History

2016-10-28 04:51:37 +02:00
import React, { PropTypes } from 'react';
export default function NumberPreview({ value }) {
return <span>{value ? value.toString() : null}</span>;
2016-10-28 04:51:37 +02:00
}
NumberPreview.propTypes = {
2016-10-28 04:51:37 +02:00
value: PropTypes.node,
};