import { Settings } from 'lucide-react'; import ServiceCard from '../components/ServiceCard'; import { useServices } from '../hooks/useServices'; import { useSettings } from '../hooks/useSettings'; interface HomePageProps { onAdminClick: () => void; isAdmin: boolean; } function HomePage({ onAdminClick, isAdmin }: HomePageProps) { const { services, loading: servicesLoading } = useServices(); const { logo, loading: logoLoading } = useSettings(); if (servicesLoading || logoLoading) { return (

جاري التحميل...

); } return (
{/* Header */}
{/* Logo */}
شعار وزارة التعليم
{/* Title */}

قسم النشاط الطلابي

إدارة التعليم بالمنطقة الشرقية

{/* Admin Button */}
{isAdmin && ( )} {!isAdmin && ( )}
{/* Hero Section */}

الخدمات الإلكترونية

منصة متكاملة لجميع الخدمات والأنشطة الطلابية

{/* Services Grid */}
{services.map((service) => ( ))}
{services.length === 0 && (

لا توجد خدمات متاحة حالياً

)}
{/* Footer */}
); } export default HomePage;