import { useParams } from 'react-router-dom'
import { services } from '@/data/services'
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) => (
))}
Ideal For
{service.idealFor.map((item, index) => (
))}
{/* Right Column - Sidebar */}
Quick Info
Category
{service.id.replace('-', ' ')}
)
}
export default ServiceDetail