'use client'; import { ChevronLeft, ChevronRight, Maximize } from 'lucide-react'; import Image from 'next/image'; import { useState } from 'react'; import { useTextController } from '@/shared/language/hooks/use-text-controller'; import { Button } from '@/shared/shadcn-ui/button'; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, } from '@/shared/shadcn-ui/dialog'; interface Station { id: number; name: string; image: string; location: string; } const stations: Array = [ { id: 1, name: 'АЗС Душанбе-Центр', image: '/placeholder.svg?height=400&width=600&text=АЗС+Душанбе-Центр', location: 'ул. Рудаки 150, Душанбе', }, { id: 2, name: 'АЗС Худжанд', image: '/placeholder.svg?height=400&width=600&text=АЗС+Худжанд', location: 'ул. Ленина 45, Худжанд', }, { id: 3, name: 'АЗС Куляб', image: '/placeholder.svg?height=400&width=600&text=АЗС+Куляб', location: 'ул. Сомони 78, Куляб', }, { id: 4, name: 'АЗС Бохтар', image: '/placeholder.svg?height=400&width=600&text=АЗС+Бохтар', location: 'ул. Айни 23, Бохтар', }, { id: 5, name: 'АЗС Хорог', image: '/placeholder.svg?height=400&width=600&text=АЗС+Хорог', location: 'ул. Горная 12, Хорог', }, { id: 6, name: 'АЗС Истаравшан', image: '/placeholder.svg?height=400&width=600&text=АЗС+Истаравшан', location: 'ул. Исмоили Сомони 34, Истаравшан', }, ]; export function StationGallery() { const [currentImage, setCurrentImage] = useState(0); const [selectedStation, setSelectedStation] = useState(null); const nextImage = () => { setCurrentImage((prev) => (prev === stations.length - 1 ? 0 : prev + 1)); }; const prevImage = () => { setCurrentImage((prev) => (prev === 0 ? stations.length - 1 : prev - 1)); }; const { t } = useTextController(); return (
{stations[currentImage].name}

{stations[currentImage].name}

{stations[currentImage].location}

{stations[currentImage].name} {stations[currentImage].location}
{stations[currentImage].name}
{stations.map((station, index) => (
setCurrentImage(index)} > {station.name}
))}
); }