infoalloggi-monorepo/apps/infoalloggi/src/components/chat/chat-message-list.tsx
2025-08-29 16:18:32 +02:00

23 lines
515 B
TypeScript

import { forwardRef, type HTMLAttributes } from "react";
import { cn } from "~/lib/utils";
type ChatMessageListProps = HTMLAttributes<HTMLDivElement>;
const ChatMessageList = forwardRef<HTMLDivElement, ChatMessageListProps>(
({ className, children, ...props }, ref) => (
<div
className={cn(
"flex h-full w-full flex-col overflow-y-auto p-4",
className,
)}
ref={ref}
{...props}
>
{children}
</div>
),
);
ChatMessageList.displayName = "ChatMessageList";
export { ChatMessageList };