Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1x 2x | import React from 'react';
export interface StatCardProps {
title: string;
value: number | string;
icon: React.ReactNode;
}
export const StatCard: React.FC<StatCardProps> = ({ title, value, icon }) => (
<div className="bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-6 flex items-center">
<div className="mr-4 text-brand-primary bg-brand-primary/10 p-3 rounded-lg">{icon}</div>
<div>
<p className="text-sm font-medium text-gray-500 dark:text-gray-400">{title}</p>
<p className="text-2xl font-bold text-gray-900 dark:text-white">{value}</p>
</div>
</div>
);
|