2016-09-11 23:07:48 +02:00
|
|
|
import React, { PropTypes } from 'react';
|
2016-11-23 16:23:32 -02:00
|
|
|
import previewStyle from './defaultPreviewStyle';
|
2016-09-11 23:07:48 +02:00
|
|
|
|
2017-05-19 12:52:47 -04:00
|
|
|
export default function DateTimePreview({ value }) {
|
2016-11-23 16:23:32 -02:00
|
|
|
return <div style={previewStyle}>{value ? value.toString() : null}</div>;
|
2016-09-11 23:07:48 +02:00
|
|
|
}
|
|
|
|
|
2017-05-19 12:52:47 -04:00
|
|
|
DateTimePreview.propTypes = {
|
|
|
|
value: PropTypes.object,
|
2016-09-11 23:07:48 +02:00
|
|
|
};
|