26 lines
No EOL
434 B
TypeScript
26 lines
No EOL
434 B
TypeScript
import { ReactNode } from "react";
|
|
|
|
type Props = {
|
|
title: string;
|
|
value: ReactNode;
|
|
};
|
|
|
|
export default function StatCard({ title, value }: Props) {
|
|
|
|
return (
|
|
|
|
<div className="bg-white rounded-xl shadow p-6">
|
|
|
|
<p className="text-gray-500">
|
|
{title}
|
|
</p>
|
|
|
|
<h2 className="text-5xl font-bold mt-4">
|
|
{value}
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
} |