"use client"; import { useEffect, useRef } from "react"; import { ReleaseLink } from "../ReleaseLink/ReleaseLink"; import Link from "next/link"; import Styles from "./ReleaseCourusel.module.css"; import Swiper from "swiper"; import "swiper/css"; import "swiper/css/navigation"; import { Navigation } from "swiper/modules"; export const ReleaseCourusel = (props) => { useEffect(() => { const options = { direction: "horizontal", spaceBetween: 8, allowTouchMove: true, slidesPerView: "auto", navigation: { enabled: false, nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, breakpoints: { 450: { navigation: { enabled: true, }, }, }, modules: [Navigation], }; new Swiper(".swiper", options); }, []); return (

{props.sectionTitle}

Показать все

{props.content.map((release) => { return (
); })}
); };