// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates // SPDX-License-Identifier: MIT import { useStickToBottom } from "use-stick-to-bottom"; import { ScrollArea } from "~/components/ui/scroll-area"; import { cn } from "~/lib/utils"; export function ScrollContainer({ className, children, scrollShadow = true, scrollShadowColor = "white", }: { className?: string; children: React.ReactNode; scrollShadow?: boolean; scrollShadowColor?: string; }) { const { scrollRef, contentRef } = useStickToBottom({ initial: "instant", }); return (