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

11 lines
253 B
JavaScript
Raw Normal View History

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