'use client'; import {useEffect, useState} from 'react'; import Link from 'next/link'; import {PhoneOutlined} from '@ant-design/icons'; import {useLanguage} from '@/app/context/LanguageContext'; import {commerceCopy} from '@/data/commerce'; import HorizontalShowcase from './HorizontalShowcase'; import MobileShowcase from './MobileShowcase'; const MOBILE_BREAKPOINT = 768; export default function ShowcaseSection() { const {t, locale} = useLanguage(); const copy = commerceCopy[locale]; const [isMobile, setIsMobile] = useState(null); useEffect(() => { const mediaQuery = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`); const handleChange = (event: MediaQueryListEvent) => setIsMobile(event.matches); setIsMobile(mediaQuery.matches); mediaQuery.addEventListener('change', handleChange); return () => mediaQuery.removeEventListener('change', handleChange); }, []); if (isMobile === null) return null; if (!isMobile) return ( <>

{copy.supportOrderTitle}

{copy.supportOrderDescription}

{copy.callSupport} {t.contactInfo.orderPhone}
); return ( <>

{copy.featuredProducts}

{copy.allProducts}
); }