konobangu/packages/ai/components/thread.tsx

17 lines
389 B
TypeScript

import type { HTMLAttributes } from 'react';
import { twMerge } from 'tailwind-merge';
type ThreadProps = HTMLAttributes<HTMLDivElement>;
export const Thread = ({ children, className, ...props }: ThreadProps) => (
<div
className={twMerge(
'flex flex-1 flex-col items-start gap-4 overflow-y-auto p-8 pb-0',
className
)}
{...props}
>
{children}
</div>
);