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

10 lines
206 B
JavaScript
Raw Normal View History

2016-09-11 23:07:48 +02:00
import React, { PropTypes } from 'react';
export default function DatePreview({ value }) {
return <span>{value ? value.toString() : null}</span>;
2016-09-11 23:07:48 +02:00
}
DatePreview.propTypes = {
2016-09-11 23:07:48 +02:00
value: PropTypes.node,
};