23 lines
716 B
TypeScript
23 lines
716 B
TypeScript
import React from 'react';
|
|
import { BrainIcon } from '../icons/Icons.tsx';
|
|
|
|
interface AiInsightCardProps {
|
|
title: string;
|
|
children: React.ReactNode;
|
|
icon?: React.ReactNode;
|
|
}
|
|
|
|
const AiInsightCard: React.FC<AiInsightCardProps> = ({ title, children, icon }) => {
|
|
return (
|
|
<div className="bg-purple-50 border-l-4 border-purple-400 p-4 rounded-r-lg shadow-sm">
|
|
<div className="flex items-center mb-2">
|
|
<div className="text-purple-600 mr-3 text-xl">{icon || <BrainIcon />}</div>
|
|
<h3 className="text-lg font-bold text-purple-900">{title}</h3>
|
|
</div>
|
|
<div className="pl-9 text-sm text-purple-800/90 space-y-2">{children}</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default AiInsightCard;
|