import React from "react"; import { useState } from "react"; type ClickableTextProps = { /** Content to be displayed for the given value. */ displayValue: string | number | JSX.Element; ellipsis?: boolean; onClick: VoidFunction; }; /** Functional component to render clickable text which opens the DataInspector.*/ export const ClickableText = ({ displayValue, ellipsis = false, onClick, }: ClickableTextProps) => { const [isHovering, setHovering] = useState(false); return (