import { HistoryPayload } from "@flyde/core";
import * as React from "react";
import { cn } from "../../lib/utils";
import { formatTimeAgo } from "../../lib/format-time";
import { HotkeyIndication } from "../../ui";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faChevronDown, faChevronUp, faSpinner } from "@fortawesome/free-solid-svg-icons";
interface PinTooltipContentProps {
displayName: string;
typeLabel: string;
description?: string;
history?: HistoryPayload;
queuedValues?: number;
className?: string;
isLoading?: boolean;
onInspect?: () => void;
isExpanded?: boolean;
onToggleExpand?: () => void;
}
export const PinTooltipContent = ({
displayName,
typeLabel: type,
description,
history,
className,
isLoading = false,
onInspect,
isExpanded = false,
onToggleExpand,
}: PinTooltipContentProps) => {
const indication =
{formattedValue}