import { __assign, __rest } from "tslib";
// @ts-nocheck
import './ContentBuilder.css';
import React from 'react';
import { cn } from '../../utils/bem';
import { forwardRefWithAs } from '../../utils/types/PropsWithAsAttributes';
import { usePropsHandler } from '../EventInterceptor/usePropsHandler';
import { ContentBuilderItem } from './ContentBuilderItem';
export var cnContentBuilder = cn('ContentBuilder');
export var ContentBuilder = forwardRefWithAs(function (props, ref) {
    var _a = usePropsHandler(cnContentBuilder(), props), items = _a.items, aliases = _a.aliases, otherProps = __rest(_a, ["items", "aliases"]);
    return (React.createElement("div", { className: cnContentBuilder() }, items.map(function (item, index) { return (React.createElement("div", { className: cnContentBuilder('Item'), key: item.id },
        React.createElement(ContentBuilderItem, __assign({}, item, { aliases: aliases }, otherProps)))); })));
});
export { ContentBuilderItem } from './ContentBuilderItem';
