"use client"; import Image from "next/image"; import Link from "next/link"; import { useAbout } from "@/lib/hooks/useAbout"; import { AboutService as AboutServiceType, AboutProcess } from "@/lib/api/aboutService"; import thumb from "@/public/images/service/two.png"; import thumbTwo from "@/public/images/service/three.png"; const AboutServiceComponent = () => { const { data, loading, error } = useAbout(); // Show loading state if (loading) { return (
Loading...

Loading service content...

); } // Show error state if (error) { return (

Error Loading Content

{error}

); } // Use API data or fallback to default content const serviceData = data?.service as AboutServiceType | undefined; const processData = data?.process as AboutProcess | undefined; return (
Enterprise Technology Solutions
{serviceData?.badge_text || "About Our Company"}

{serviceData?.title || "Enterprise Technology Leaders"}

{serviceData?.description || "Founded in 2008, EnterpriseSoft Solutions has emerged as a premier enterprise software company, serving Fortune 500 companies and innovative startups worldwide. Our team of 200+ engineers, architects, and consultants specializes in delivering mission-critical software solutions that drive digital transformation and business growth."}

{serviceData?.features && serviceData.features.length > 0 ? ( serviceData.features.map((feature, index) => (
{feature.title}

{feature.description}

)) ) : ( <>
Enterprise Security

Defense-Grade Protection

Cloud Native

AWS, Azure, GCP Partners

Certified Experts

Microsoft, AWS, Google Certified

Global Reach

Offices in 5 Countries

)}
{serviceData?.cta_text || "Explore Our Solutions"}
{processData?.badge_text || "Our Methodology"}

{processData?.title || "Enterprise Development Process"}

{processData?.description || "Our proven enterprise development methodology combines agile practices with enterprise-grade security, scalability, and compliance requirements. We follow industry best practices including DevOps, CI/CD, and microservices architecture to deliver robust, scalable solutions."}

{processData?.steps && processData.steps.length > 0 ? ( processData.steps.map((step, index) => (
{step.step_number}
{step.title}

{step.description}

)) ) : ( <>
01
Discovery & Planning

Comprehensive analysis and architecture design

02
Development & Testing

Agile development with continuous testing

03
Deployment & Integration

Seamless deployment and system integration

04
Support & Maintenance

24/7 enterprise support and maintenance

)}
{processData?.cta_text || "View Our Services"}
Enterprise Development Process
); }; export default AboutServiceComponent;