(numItems: number)
| 46 | const pattern = [UP, DOWN, UP, DOWN]; |
| 47 | |
| 48 | const getInitialState = (numItems: number): CarouselState => ({ pos: numItems - 1, sliding: false, dir: NEXT }); |
| 49 | |
| 50 | const Carousel: FunctionComponent<{children: ReactNode}> = (props) => { |
| 51 | const numItems = React.Children.count(props.children); |
no outgoing calls
no test coverage detected
searching dependent graphs…