"use client";
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Tooltip, TooltipContent, TooltipTrigger, } from "../../components/ui/tooltip";
import { getInlineAiTextEditShortcutLabel, INLINE_AI_TEXT_EDIT_LABEL, } from "./inlineAiTextEditLabels";
export { INLINE_AI_TEXT_EDIT_LABEL } from "./inlineAiTextEditLabels";
export function InlineAiTextEditTooltip({ children, side = "top", sideOffset = 4, }) {
    const shortcut = getInlineAiTextEditShortcutLabel();
    return (_jsxs(Tooltip, { delayDuration: 300, children: [_jsx(TooltipTrigger, { asChild: true, children: children }), _jsx(TooltipContent, { side: side, sideOffset: sideOffset, children: _jsxs("div", { className: "flex max-w-56 flex-col gap-1", children: [_jsx("span", { className: "font-medium", children: INLINE_AI_TEXT_EDIT_LABEL }), _jsx("span", { className: "text-primary-foreground/80", children: "Rewrite or expand the selected text with AI." }), _jsxs("span", { className: "text-primary-foreground/70 mt-0.5 text-[11px]", children: ["Shortcut:", " ", _jsx("kbd", { className: "font-mono font-medium", children: shortcut })] })] }) })] }));
}
//# sourceMappingURL=InlineAiTextEditTooltip.js.map