hts/apps/blogai/components/mpv2/user-message.tsx

19 lines
357 B
TypeScript

import { cn } from '@/lib/utils'
import React from 'react'
type UserMessageProps = {
message: string
isFirstMessage?: boolean
}
export const UserMessage: React.FC<UserMessageProps> = ({
message,
isFirstMessage
}) => {
return (
<div className={cn({ 'pt-4': !isFirstMessage })}>
<div className="text-xl">{message}</div>
</div>
)
}