import React, { useState } from 'react' import { Swiper, SwiperSlide } from 'swiper/react' import 'swiper/swiper.min.css' import Image from '@/core/components/elements/Image/Image' import useDevice from '@/core/hooks/useDevice' const HomePage = () => { const [activeTab, setActiveTab] = useState('Tab 1') const { isMobile, isDesktop } = useDevice() const handleTabClick = (label) => { setActiveTab(label) } const tabItems = [ { label: 'Tab 1', content: 'Content for Tab 1' }, { label: 'Tab 2', content: 'Content for Tab 2' }, { label: 'Tab 3', content: 'Content for Tab 3' }, { label: 'Tab 4', content: 'Content for Tab 4' }, { label: 'Tab 5', content: 'Content for Tab 5' }, { label: 'Tab 6', content: 'Content for Tab 6' }, { label: 'Tab 7', content: 'Content for Tab 7' }, { label: 'Tab 8', content: 'Content for Tab 8' }, { label: 'Tab 9', content: 'Content for Tab 9' }, { label: 'Tab 10', content: 'Content for Tab 10' } ] return (
{activeTab}
{tabItems.map((item, index) => ( ))}
{tabItems.map((item, index) => (
{item.content}
))}
) } export default HomePage