import React from "react"; import { formatSnippetCommandTooltip } from "@/domain/snippetPreview"; import { cn } from "@/lib/utils"; export function SnippetCommandTooltipContent({ label, command, className, fallback, }: { label?: string; command: string; className?: string; fallback?: string; }) { const preview = formatSnippetCommandTooltip(command); return (
{label ? (
{label}
) : null}
        {preview || fallback || "—"}
      
); }