lincd-design-elems
Version:
18 lines • 862 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.InlineList = void 0;
const react_1 = __importDefault(require("react"));
const package_1 = require("../package");
const Shape_1 = require("lincd/lib/shapes/Shape");
exports.InlineList = (0, package_1.linkedSetComponent)(Shape_1.Shape, ({ sources, children, ChildComponent }) => {
return (react_1.default.createElement(react_1.default.Fragment, null, ChildComponent
? sources.map((source) => {
return (react_1.default.createElement(ChildComponent, { of: source, key: source.node.toString() }));
})
: children));
});
(0, package_1.registerPackageModule)(module);
//# sourceMappingURL=InlineList.js.map