import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
/**
 * Copyright (c) 2020-present, Goldman Sachs
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import { observer } from 'mobx-react-lite';
import { PanelListItem, PanelDivider } from '@finos/legend-art';
import {} from '@finos/legend-graph';
export const PartialClassResultTypeViewer = observer((props) => {
    const { resultType } = props;
    return (_jsxs("div", { className: "query-builder__result__container", children: [_jsxs(PanelListItem, { className: "query-builder__result__container__item__partial-class", children: ["Result type: PartialClass[", resultType.type.valueForSerialization ?? '', "]"] }), _jsx(PanelDivider, {}), _jsxs("table", { className: "query-builder__result__container__table--partial-class table", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "table__cell--left", children: "Property" }), _jsx("th", { className: "table__cell--left", children: "Parameters" })] }) }), _jsx("tbody", { children: resultType.propertiesWithParameters.map((column) => (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: column.property }), _jsx("td", { className: "table__cell--left", children: column.parameters.toString() })] }, column.property))) })] }), _jsx(PanelDivider, {})] }));
});
//# sourceMappingURL=PartialClassResultViewer.js.map