/* Copyright 2019-2024 New Vector Ltd. SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE files in the repository root for full details. */ import React, { type HTMLAttributes } from "react"; import { Tooltip } from "@vector-im/compound-web"; interface IProps extends HTMLAttributes { tooltip: string; tooltipProps?: { tabIndex?: number; }; } export default class TextWithTooltip extends React.Component { public render(): React.ReactNode { const { className, children, tooltip, tooltipProps } = this.props; return ( {children} ); } }