import { TOptionsEvents } from 'keen-slider'; import React from 'react'; import CarouselCommon from '../CarouselCommon/CarouselCommon'; import ProductCard, { ProductCardProps } from '../ProductCard/ProductCard'; import InfoProducts from './InfoProducts/InfoProducts'; import s from './ListProductWithInfo.module.scss'; interface Props { data: ProductCardProps[], title: string, subtitle?: string, } const OPTION_DEFAULT: TOptionsEvents = { slidesPerView: 2, mode: 'free', breakpoints: { '(min-width: 640px)': { slidesPerView: 3, }, '(min-width: 768px)': { slidesPerView: 3, }, '(min-width: 1008px)': { slidesPerView: 3.5, }, '(min-width: 1024px)': { slidesPerView: 2.5, }, '(min-width: 1280px)': { slidesPerView: 3.5, }, '(min-width: 1440px)': { slidesPerView: 4.5, }, }, } const ListProductWithInfo = ({ data, title, subtitle }: Props) => { return (