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

11 lines
276 B
JavaScript
Raw Normal View History

2016-05-30 16:55:32 -07:00
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
2016-05-30 16:55:32 -07:00
export default function UnknownPreview({ field }) {
return <div>No preview for widget '{field.get('widget')}'.</div>;
2016-05-30 16:55:32 -07:00
}
UnknownPreview.propTypes = {
field: ImmutablePropTypes.map,
};