Dorian Niemiec
b781de4480
Some checks failed
Deploy Next.js application / deploy (push) Failing after 14m39s
21 lines
589 B
TypeScript
21 lines
589 B
TypeScript
import { stats } from "@/constants";
|
|
import NumberTicker from "../widgets/num-tick";
|
|
|
|
const Statistics = () => {
|
|
return (
|
|
<section>
|
|
<div className="grid grid-cols-2 lg:grid-cols-4 gap-8">
|
|
{stats.map(({ title, count }) => (
|
|
<div key={title} className="space-y-2 text-center">
|
|
<p className="text-3xl sm:text-4xl font-bold">
|
|
<NumberTicker value={count} />+
|
|
</p>
|
|
<p className="text-xl text-muted-foreground">{title}</p>
|
|
</div>
|
|
))}
|
|
</div>
|
|
</section>
|
|
);
|
|
};
|
|
|
|
export default Statistics;
|