import React, { Component } from 'react';
import { Select } from 'antd';
import withItems from './with-items';
import withCollection from './with-collection';
@withCollection
@withItems
export default class DetailEditor extends Component {
render() {
const {
data,
collection,
items,
children,
value,
onChange,
mode,
...rest
} = this.props;
return items && items.length ? (
) : (
);
}
}