Files
KisStock/components/InsightBubble.tsx
2026-01-31 22:34:57 +09:00

22 lines
782 B
TypeScript

import React from 'react';
interface InsightBubbleProps {
user: string;
time: string;
content: string;
}
export const InsightBubble: React.FC<InsightBubbleProps> = ({ user, time, content }) => (
<div className="p-5 bg-slate-50/70 rounded-[1.5rem] border border-slate-100 space-y-2 hover:bg-white hover:shadow-md transition-all">
<div className="flex items-center justify-between">
<div className="flex items-center gap-2">
<div className="w-6 h-6 rounded-full bg-blue-100" />
<span className="text-[11px] font-black text-slate-700">{user}</span>
</div>
<span className="text-[10px] font-bold text-slate-400">{time}</span>
</div>
<p className="text-[13px] font-medium text-slate-600 leading-relaxed">{content}</p>
</div>
);