react-antd-admin-panel
Version:
Easy prototyping admin panel using React and Antd
13 lines • 497 B
JavaScript
import React from "react";
import Section from "../Section";
const TreeItem = (props) => {
var _a;
let model = props.model;
if (model._render)
return model._render(model);
if (model._section)
return React.createElement(Section, { main: props.main, section: model._section });
return (React.createElement("div", null, (_a = model._label) !== null && _a !== void 0 ? _a : 'Undefined'));
};
export default TreeItem;
//# sourceMappingURL=TreeItem.js.map