import React from "react"; import Image from "../Components/Ui/Image"; import { FaFileWord, FaHome } from "react-icons/fa"; const generateFakeData = () => { const data = []; for (let i = 0; i < 4; i++) { const percentage = Math.random() * 100; const studentCount = Math.floor(Math.random() * 100); const header = `نسبة الحاصلين على العلامة التامة`; const info = "طالب وطالب"; const icon = ; data.push({ percentage, studentCount, header, info, icon }); } return data; }; const ChartCard = ({ percentage, studentCount, header, info, icon }: any) => { return (

{header}

{percentage.toFixed(2)}%

{studentCount} {info}

); }; const ChartCards = () => { const data = generateFakeData(); return (
{data.map((item: any, index) => ( ))}
); }; export default ChartCards;