SurfSense/surfsense_web/components/assistant-ui/thread-scroll-to-bottom.tsx
CREDO23 2b5377846d refactor: modularize thread.tsx into focused component modules
- Split 1,089-line thread.tsx into 10 smaller, focused modules
- Created dedicated files for thinking-steps, welcome, composer, messages, etc.
- No breaking changes - all logic preserved exactly as before
- Improved code organization and maintainability
2025-12-30 16:38:57 +02:00

19 lines
643 B
TypeScript

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"
className="aui-thread-scroll-to-bottom -top-12 absolute z-10 self-center rounded-full p-4 disabled:invisible dark:bg-background dark:hover:bg-accent"
>
<ArrowDownIcon />
</TooltipIconButton>
</ThreadPrimitive.ScrollToBottom>
);
};