import React from 'react'; import { ArrowRight } from 'lucide-react'; import { Link } from 'react-router-dom'; import { SERVICES } from '../constants'; const Services: React.FC = () => { // Exclude Technical Tasks and show first 3 actual services const actualServices = SERVICES.filter(service => service.title !== 'Технические задания'); const displayedServices = actualServices.slice(0, 3); // Helper function to get service detail page URL const getServiceUrl = (title: string) => { const urlMap: { [key: string]: string } = { 'Инженерные изыскания': '/services/surveying', 'Проектирование': '/services/design', 'Строительство': '/services/construction', 'Обследование грунтов': '/services/soil-survey', 'Обследование здания': '/services/building-survey', 'Землестроительный и Кадастровые работы': '/services/land-survey' }; return urlMap[title] || null; }; return (

Услуги

Показать все
{displayedServices.map((service, idx) => { const detailUrl = getServiceUrl(service.title); return (
{service.title}

{service.title}

{service.description}

{detailUrl && ( Подробнее )} Рассчитать стоимость
); })}
); }; export default Services;