import React from 'react';
import { registerWidget, Value } from '../Value';
registerWidget('typeParameter', function (_a) {
    var value = _a.value;
    return (React.createElement(React.Fragment, null,
        React.createElement("span", { className: "token symbol" }, value.name),
        value.constraint && (React.createElement(React.Fragment, null,
            ' ',
            React.createElement("span", { className: "token keyword" }, "extends"),
            " ",
            React.createElement(Value, { value: value.constraint }))),
        value.defaultValue && (React.createElement(React.Fragment, null,
            ' ',
            React.createElement("span", { className: "token operator" }, "="),
            " ",
            React.createElement(Value, { value: value.defaultValue })))));
});
