import React from 'react';
import { registerWidget, Value } from '../Value';
registerWidget('conditional', function (_a) {
    var value = _a.value;
    return (React.createElement(React.Fragment, null,
        React.createElement(Value, { value: value.check }),
        " ",
        React.createElement("span", { className: "token keyword" }, "extends"),
        ' ',
        React.createElement(Value, { value: value.extends }),
        " ? ",
        React.createElement(Value, { value: value.trueType }),
        " :",
        ' ',
        React.createElement(Value, { value: value.falseType })));
});
