import { jsx as _jsx, jsxs as _jsxs } 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 { Tooltip } from '@finos/legend-art';
import {} from '@finos/legend-graph';
import { QueryBuilderTaggedValueInfoTooltip } from './QueryBuilderPropertyInfoTooltip.js';
export const QueryBuilderRootClassInfoTooltip = (props) => {
    const { _class, children, placement } = props;
    return (_jsx(Tooltip, { arrow: true, ...(placement !== undefined ? { placement } : {}), classes: {
            tooltip: 'query-builder__tooltip',
            arrow: 'query-builder__tooltip__arrow',
            tooltipPlacementRight: 'query-builder__tooltip--right',
        }, slotProps: {
            transition: {
                // disable transition
                // NOTE: somehow, this is the only workaround we have, if for example
                // we set `appear = true`, the tooltip will jump out of position
                timeout: 0,
            },
        }, title: _jsxs("div", { className: "query-builder__tooltip__content", children: [_jsxs("div", { className: "query-builder__tooltip__item", children: [_jsx("div", { className: "query-builder__tooltip__item__label", children: "Type" }), _jsx("div", { className: "query-builder__tooltip__item__value", children: "Unknown" })] }), _jsxs("div", { className: "query-builder__tooltip__item", children: [_jsx("div", { className: "query-builder__tooltip__item__label", children: "Path" }), _jsx("div", { className: "query-builder__tooltip__item__value", children: _class.path })] }), _jsx(QueryBuilderTaggedValueInfoTooltip, { taggedValues: _class.taggedValues })] }), children: children }));
};
//# sourceMappingURL=QueryBuilderRootClassInfoTooltip.js.map