11 lines
259 B
JavaScript
11 lines
259 B
JavaScript
|
import React, { PropTypes } from 'react';
|
||
|
import previewStyle from './defaultPreviewStyle';
|
||
|
|
||
|
export default function RelationPreview({ value }) {
|
||
|
return <div style={previewStyle}>{ value }</div>;
|
||
|
}
|
||
|
|
||
|
RelationPreview.propTypes = {
|
||
|
value: PropTypes.node,
|
||
|
};
|