import React from 'react'; import styled, { css } from 'styled-components'; import { dim } from '@dim'; import * as tokens from '@tokens'; import { Carousel } from '..'; // Needs to be imported from actual file so its treated as an extendable styled-component import { CarouselSlide } from '../CarouselComponents'; import Props from './interface'; const styles = css` margin-bottom: ${dim(8)}; .slick-list { margin: 0; } .slick-arrow { top: auto; bottom: ${dim(-8)}; padding: ${dim(2)}; &.slick-next { right: 46% !important; } &.slick-prev { left: 46% !important; } } `; const Slide = styled(CarouselSlide)` border-left: 1px solid ${tokens.colorGrey15} !important; `; export default ({ children, settings = {}, ...props }: Props) => ( {React.Children.map(children, (child: React.ReactElement, i: number) => ( {child} ))} );