import React, { Component, PropTypes } from 'react';
class DeepTree extends Component {
static propTypes = {
breadth: PropTypes.number.isRequired,
components: PropTypes.object,
depth: PropTypes.number.isRequired,
id: PropTypes.number.isRequired,
wrap: PropTypes.number.isRequired
};
render() {
const { breadth, components, depth, id, wrap } = this.props;
const { Box } = components;
let result = (
{depth === 0 && }
{depth !== 0 &&
Array.from({ length: breadth })
.map((el, i) => (
))}
);
for (let i = 0; i < wrap; i++) {
result = {result};
}
return result;
}
}
module.exports = DeepTree;