@prexo/ai-chat-sdk
Version:
AI Chat Component with Persistent History
55 lines (54 loc) • 1.06 kB
JavaScript
import { jsx } from "react/jsx-runtime";
import * as React from "react";
import * as AvatarPrimitive from "@radix-ui/react-avatar";
import { cn } from "../../../lib/utils.js";
function Avatar({
className,
...props
}) {
return /* @__PURE__ */ jsx(
AvatarPrimitive.Root,
{
"data-slot": "avatar",
className: cn(
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
className
),
...props
}
);
}
function AvatarImage({
className,
...props
}) {
return /* @__PURE__ */ jsx(
AvatarPrimitive.Image,
{
"data-slot": "avatar-image",
className: cn("aspect-square size-full", className),
...props
}
);
}
function AvatarFallback({
className,
...props
}) {
return /* @__PURE__ */ jsx(
AvatarPrimitive.Fallback,
{
"data-slot": "avatar-fallback",
className: cn(
"bg-muted flex size-full items-center justify-center rounded-full",
className
),
...props
}
);
}
export {
Avatar,
AvatarFallback,
AvatarImage
};