/** * @fileoverview Reusable stats card component for displaying numeric metrics. * Used for dashboards and import statistics displays. * @module components/shared/StatsCard */ import { ReactElement } from "react"; import type { StatsCardProps } from "../../types"; /** * A reusable stats card component for displaying numeric metrics. * * @example * ```tsx * * ``` */ export function StatsCard({ value, label, backgroundColor = "#6b7280", valueColor = "text-white", labelColor = "text-gray-200", className = "", }: StatsCardProps): ReactElement { const isHexColor = backgroundColor.startsWith("#") || backgroundColor.startsWith("rgb"); return (
{value}
{label}
); } export default StatsCard;