Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

579 B
Raw Blame
import type { Message } from "../../types";
import { Markdown } from "./Markdown/Markdown";

type Props = {
  readonly message: Message;
};

/**
 * User-authored message bubble. Width clamped to 60% of the row so an
 * AI response (`w-full`) and a user prompt visually contrast.
 */
export function UserMessageView({ message }: Props) {
  return (
    <div className="user-message min-w-0 max-w-[60%] border rounded-sm shadow-sm py-1 px-2 bg-accent/15 border-accent/50 text-control">
      <Markdown content={message.content} codeBlockProps={{ width: 0.6 }} />
    </div>
  );
}