import React, { useEffect, useState } from 'react'; import { Row, Col, Typography, Button, Spin } from 'antd'; import { motion } from 'framer-motion'; import { RightOutlined, SearchOutlined, DatabaseOutlined, ThunderboltOutlined, CheckCircleOutlined, CloudServerOutlined } from '@ant-design/icons'; import { getServices } from '../api'; import { useNavigate } from 'react-router-dom'; const { Title, Paragraph } = Typography; const AIServices = () => { const [services, setServices] = useState([]); const [loading, setLoading] = useState(true); const navigate = useNavigate(); useEffect(() => { const fetchServices = async () => { try { const response = await getServices(); setServices(response.data); } catch (error) { console.error("Failed to fetch services:", error); } finally { setLoading(false); } }; fetchServices(); }, []); if (loading) { return (
{item.description}