@yandex/ui
Version:
Yandex UI components
18 lines (17 loc) • 576 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Group = void 0;
var tslib_1 = require("tslib");
var Group = function () {
return null;
};
exports.Group = Group;
exports.Group.getCollectionNode = function getComponetNode(props, context) {
// eslint-disable-next-line camelcase
var children = props.children, label = props.label, unsafe_props = tslib_1.__rest(props, ["children", "label"]);
return {
title: label,
items: context.createCollection(props.children),
unsafe_props: unsafe_props,
};
};