import React, { useRef } from "react"; import NewsCard from "@/components/news/NewsCard"; import Link from "next/link"; const SCROLL_AMOUNT = 340; // px, ширина одной карточки + отступ const NewsAndPromos = () => { const scrollRef = useRef(null); const scrollLeft = () => { if (scrollRef.current) { scrollRef.current.scrollBy({ left: -SCROLL_AMOUNT, behavior: 'smooth' }); } }; const scrollRight = () => { if (scrollRef.current) { scrollRef.current.scrollBy({ left: SCROLL_AMOUNT, behavior: 'smooth' }); } }; return (

Новости и акции

Ко всем новостям
); }; export default NewsAndPromos;