import styled from 'styled-components/macro' import { devices } from 'config/devices' export const Wrapper = styled.div` position: relative; margin-bottom: 16px; ` export const Slides = styled.ul` display: flex; scroll-behavior: smooth; overflow-x: auto; &::-webkit-scrollbar { display: none; } @media ${devices.mobile} { flex-direction: column; } ` export const Arrow = styled.div<{ type: 'arrowLeft' | 'arrowRight' }>` position: absolute; top: 50%; left: ${({ type }) => (type === 'arrowLeft' ? '10px' : 'calc(100% - 10px)')}; width: 40px; height: 40px; background-position: center; background-repeat: no-repeat; background-image: url(${({ type }) => (type === 'arrowLeft' ? '/images/slideLeft.svg' : '/images/slideRight.svg')}); cursor: pointer; transform: translate(-50%, -50%); z-index: 1; `