Update src/components/admin/StatsCard.js
Browse files1234567891011121314151617181920212223242526import React from "react";import { Card, CardContent } from "@/components/ui/card";import { motion } from "framer-motion";export default function StatsCard({ title, value, icon: Icon, bgColor }) {return (<motion.divinitial={{ opacity: 0, y: 20 }}animate={{ opacity: 1, y: 0 }}><Card className="border-2 border-gray-200 hover:shadow-lg transition-shadow"><CardContent className="p-6"><div className="flex items-center justify-between"><div><p className="text-sm text-gray-600 mb-1">{title}</p><p className="text-3xl font-bold">{value}</p></div><div className={`w-14 h-14 ${bgColor} rounded-xl flex items-center justify-center`}><Icon className="w-7 h-7 text-white" /></div></div></CardContent></Card></motion.div>);}
src/components/admin/StatsCard.js+26