"use client"; import { useEffect } 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: { sectionTitle: string; showAllLink?: string; content: any; }) => { useEffect(() => { const options: any = { 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.showAllLink && (

Показать все

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