import React from 'react';
import { registerWidget, Value } from '../Value';
import { RenderContext } from '../widgetUtils';
registerWidget('intersection', function (_a) {
    var value = _a.value;
    return (React.createElement(RenderContext.Provider, { value: "inline" }, value.value.map(function (v, i) { return (React.createElement(React.Fragment, { key: i },
        i !== 0 && React.createElement("span", { className: "token punctuation" }, " & "),
        React.createElement(Value, { value: v }))); })));
});
