import { jsx } from 'react/jsx-runtime';

/**
 * StreamingCursor renders a blinking caret that indicates active streaming.
 * Uses a simple CSS pulse animation — no framer motion, no layout shifts.
 */
const StreamingCursor = ({ visible, enabled = true, cursor = "▏", className, }) => {
    if (!visible)
        return null;
    return (jsx("span", { className: className || `font-extralight ml-0.5 ${enabled ? "animate-pulse" : ""}`, "aria-hidden": "true", children: cursor }));
};
StreamingCursor.displayName = "StreamingCursor";

export { StreamingCursor };
