import { useParams } from 'react-router-dom' import { services } from '@/data/services' import { Link } from 'react-router-dom' import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/Card' const ServiceDetail = () => { const { slug } = useParams() const service = services.find(s => s.id === slug) if (!service) { return ( Service Not Found The service you're looking for doesn't exist. Back to Services ) } return ( <> {/* Page Hero */} {service.name} {service.image && ( )} {service.shortDesc} {/* Main Content */} {/* Left Column - Main Content */} What This Solves {service.fullDesc} Key Benefits {service.benefits.map((benefit, index) => ( {benefit} ))} Ideal For {service.idealFor.map((item, index) => ( {item} ))} {/* Right Column - Sidebar */} Quick Info Service {service.name} Category {service.id.replace('-', ' ')} Request This Service ← Back to Services > ) } export default ServiceDetail
The service you're looking for doesn't exist.
{service.shortDesc}
{service.fullDesc}
{service.name}
{service.id.replace('-', ' ')}