"use client"; import { Primitive } from "../../utils/Primitive"; import { type ComponentRef, forwardRef, type ComponentPropsWithoutRef, } from "react"; import { useMessagePartImage } from "./useMessagePartImage"; export namespace MessagePartPrimitiveImage { export type Element = ComponentRef; /** * Props for the MessagePartPrimitive.Image component. * Accepts all standard img element props. */ export type Props = ComponentPropsWithoutRef; } /** * Renders an image from the current message part context. * * This component displays image content from the current message part, * automatically setting the src attribute from the message part's image data. * * @example * ```tsx * * ``` */ export const MessagePartPrimitiveImage = forwardRef< MessagePartPrimitiveImage.Element, MessagePartPrimitiveImage.Props >((props, forwardedRef) => { const { image } = useMessagePartImage(); // biome-ignore lint/performance/noImgElement: next/image not applicable here return ; }); MessagePartPrimitiveImage.displayName = "MessagePartPrimitive.Image";