2019-02-05 23:41:21 +01:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import { WidgetPreviewContainer } from 'netlify-cms-ui-default';
|
|
|
|
|
2021-02-08 20:01:21 +02:00
|
|
|
function MapPreview({ value }) {
|
|
|
|
return <WidgetPreviewContainer>{value ? value.toString() : null}</WidgetPreviewContainer>;
|
|
|
|
}
|
2019-02-05 23:41:21 +01:00
|
|
|
|
|
|
|
MapPreview.propTypes = {
|
|
|
|
value: PropTypes.string,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default MapPreview;
|