2025-12-30 16:38:57 +02:00
|
|
|
import { ThreadPrimitive } from "@assistant-ui/react";
|
|
|
|
|
import { ArrowDownIcon } from "lucide-react";
|
|
|
|
|
import type { FC } from "react";
|
|
|
|
|
import { TooltipIconButton } from "@/components/assistant-ui/tooltip-icon-button";
|
|
|
|
|
|
|
|
|
|
export const ThreadScrollToBottom: FC = () => {
|
|
|
|
|
return (
|
|
|
|
|
<ThreadPrimitive.ScrollToBottom asChild>
|
|
|
|
|
<TooltipIconButton
|
|
|
|
|
tooltip="Scroll to bottom"
|
|
|
|
|
variant="outline"
|
2026-03-17 01:09:15 +05:30
|
|
|
className="aui-thread-scroll-to-bottom -top-12 absolute z-10 self-center rounded-full p-4 disabled:invisible dark:bg-main-panel dark:hover:bg-accent"
|
2025-12-30 16:38:57 +02:00
|
|
|
>
|
|
|
|
|
<ArrowDownIcon />
|
|
|
|
|
</TooltipIconButton>
|
|
|
|
|
</ThreadPrimitive.ScrollToBottom>
|
|
|
|
|
);
|
|
|
|
|
};
|