14 lines
313 B
JavaScript
14 lines
313 B
JavaScript
|
import React from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import { WidgetPreviewContainer } from 'netlify-cms-ui-default';
|
||
|
|
||
|
const TextPreview = ({ value }) => (
|
||
|
<WidgetPreviewContainer>{ value }</WidgetPreviewContainer>
|
||
|
)
|
||
|
|
||
|
TextPreview.propTypes = {
|
||
|
value: PropTypes.node,
|
||
|
};
|
||
|
|
||
|
export default TextPreview;
|