"use client"; import { type FC } from "react"; import { ActionBarMorePrimitive, ActionBarPrimitive, AuiIf, BranchPickerPrimitive, ErrorPrimitive, MessagePrimitive, useAuiState, } from "@assistant-ui/react"; import { CheckIcon, ChevronLeftIcon, ChevronRightIcon, CopyIcon, DownloadIcon, MoreHorizontalIcon, RefreshCwIcon, ScaleIcon, } from "lucide-react"; import { cn } from "@/lib/utils"; import { MarkdownText } from "./markdown-text"; import { ToolFallback } from "./tool-fallback"; import { TooltipIconButton } from "./tooltip-icon-button"; const MessageError: FC = () => { return ( ); }; const AssistantActionBar: FC = () => { return ( s.message.isCopied}> !s.message.isCopied}> Export ako Markdown ); }; export const BranchPicker: FC = ({ className, ...rest }) => { return ( / ); }; export const AssistantMessage: FC = () => { return (
{({ part }) => { if (part.type === "text") return ; if (part.type === "tool-call") return part.toolUI ?? ; return null; }}
); }; export const UserMessage: FC = () => { return (
); };