import { cn } from "~/lib/utils"; import { HybridTooltip, HybridTooltipContent, HybridTooltipTrigger, } from "~/components/custom_ui/HybridTooltip"; import { TooltipProvider } from "~/components/ui/tooltip"; import { IconMatrix, type IconType } from "~/components/IconComponents"; import Link from "next/link"; import { ExternalLink } from "lucide-react"; import type { ReactNode } from "react"; /*
*/ type ChildrenBubbleProps = { children: ReactNode; href?: undefined; txt?: undefined; target?: undefined; }; type LinkBubbleProps = { children?: undefined; href: string; txt: string; target?: "_self" | "_blank" | "_parent" | "_top"; }; type InformationBubbleProps = { className?: string; iconClassName?: string; icon?: IconType; side?: "top" | "bottom" | "left" | "right"; } & (ChildrenBubbleProps | LinkBubbleProps); const InformationBubble = ({ className, icon = "circle-help", iconClassName, side, children, href, txt, target, }: InformationBubbleProps) => { return ( {href ? (

{txt}

) : ( <>{children} )}
); }; export default InformationBubble;