import { HelpCircle } from "lucide-react"; import React from "react"; import { cn } from "../../lib/utils"; import { Card } from "../ui/card"; import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip"; export function HostDetailsHelp({ children, className, }: { children: React.ReactNode; className?: string; }) { if (!children) return null; return ( {children} ); } export function HostDetailsSection({ icon, title, hint, children, className, action, }: { icon: React.ReactNode; title: React.ReactNode; hint?: React.ReactNode; children: React.ReactNode; className?: string; action?: React.ReactNode; }) { return (
{icon}

{title}

{hint && {hint}} {action &&
{action}
}
{children}
); } export function HostDetailsSettingRow({ label, hint, children, className, }: { label: React.ReactNode; hint?: React.ReactNode; children: React.ReactNode; className?: string; }) { return (
{label} {hint && {hint}}
{children}
); }