import { cva } from 'class-variance-authority';
import { clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
import { jsx } from 'react/jsx-runtime';

// src/ai/message/message.tsx
function cn(...inputs) {
  return twMerge(clsx(inputs));
}
var messageVariants = cva(
  [
    "flex w-full gap-3 px-4 py-3 text-sm",
    "transition-colors duration-[var(--duration-normal,200ms)] ease-out"
  ].join(" "),
  {
    variants: {
      role: {
        user: "bg-secondary/40 text-foreground",
        assistant: "bg-card text-card-foreground",
        system: "bg-muted text-muted-foreground italic",
        tool: "bg-accent/15 text-accent-foreground border-l-2 border-accent"
      }
    },
    defaultVariants: {
      role: "assistant"
    }
  }
);
function Message({ role, className, children, ...props }) {
  return /* @__PURE__ */ jsx("div", { "data-role": role, className: cn(messageVariants({ role }), className), ...props, children });
}

export { Message, messageVariants };
//# sourceMappingURL=message.js.map
//# sourceMappingURL=message.js.map