import cn from 'classnames' import s from './Marquee.module.css' import { FC } from 'react' import Ticker from 'react-ticker' interface Props { className?: string children?: any items: any[] wrapper?: React.Component | any variant?: 'primary' | 'secondary' } const DefaultWrapper: FC = ({ children }) =>
{children}
// DEFAULT PRODUCT WRAPPER const M: FC = ({ className = '', items, wrapper: Component = DefaultWrapper, variant = 'primary', }) => { const rootClassName = cn( s.root, { [s.primary]: variant === 'primary', [s.secondary]: variant === 'secondary', }, className ) // return ( //
//
// {items.map((p: any) => ( // // ))} //
//
// ) return (
{({ index }) => (
{items.map((p: any, i: any) => ( ))}
)}
) } export default M