diff --git a/app/components/InfoHeader.tsx b/app/components/InfoHeader.tsx index 5699083..fed3024 100644 --- a/app/components/InfoHeader.tsx +++ b/app/components/InfoHeader.tsx @@ -1,6 +1,6 @@ import { inferType } from "@jsonhero/json-infer-types"; import { JSONHeroPath } from "@jsonhero/path"; -import { useMemo } from "react"; +import { useMemo, useState } from "react"; import { useJson } from "~/hooks/useJson"; import { useJsonColumnViewState } from "~/hooks/useJsonColumnView"; import { concatenated, getHierarchicalTypes } from "~/utilities/dataType"; @@ -10,7 +10,7 @@ import { Body } from "./Primitives/Body"; import { LargeMono } from "./Primitives/LargeMono"; import { Title } from "./Primitives/Title"; import { ValueIcon, ValueIconSize } from "./ValueIcon"; -import { CopyText } from "./CopyText"; +import { CopyTextButton } from "./CopyTextButton"; export type InfoHeaderProps = { relatedPaths: string[]; @@ -40,6 +40,8 @@ export function InfoHeader({ relatedPaths }: InfoHeaderProps) { return isNullable(relatedPaths, json); }, [relatedPaths, json]); + const [hovering, setHovering] = useState(false); + return (