import React , { FunctionComponent } from 'react' ; import styles from '../../styles/styles.module.css' ; export const Arrow = ( props ) => ( < button className = { styles . carouselArrow } onClick = { props . onClick } data - direction = { props . direction } />); export interface ArrowProps { onClick ? : ( ... args : any ) => any ; direction : string ; }