import type { FC } from 'react' import { CopyFeedbackNew } from '@/app/components/base/copy-feedback' type CardProps = { log: { role: string; text: string }[] } const Card: FC = ({ log, }) => { return ( <> { log.length === 1 && (
{log[0].text}
) } { log.length > 1 && (
{ log.map((item, index) => (
{item.role.toUpperCase()}
{item.text}
)) }
) } ) } export default Card