File size: 600 Bytes
b72deed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import React from 'react'

interface ChartCardProps {
  title: string
  subtitle: string
  icon: React.ReactNode
  children: React.ReactNode
}

export const ChartCard: React.FC<ChartCardProps> = ({ title, subtitle, icon, children }) => (
  <div className="bg-slate-900 border border-slate-800 rounded-xl p-4 space-y-3">
    <div className="flex items-center gap-2">
      {icon}
      <div>
        <h3 className="text-sm font-semibold text-white leading-tight">{title}</h3>
        <p className="text-xs text-slate-500 leading-tight">{subtitle}</p>
      </div>
    </div>
    {children}
  </div>
)