// @flow import classNames from 'classnames'; import * as React from 'react'; import CarouselHeader from './CarouselHeader'; import SlideNavigator from './SlideNavigator'; import SlidePanels from './SlidePanels'; type Props = { children?: React.Node, className?: string, /** The constant value to use for the content area's style height property */ contentHeight?: string, idPrefix?: string, onSelection: Function, selectedIndex: number, title?: string, }; const SlideCarouselPrimitive = ({ children, className, contentHeight, idPrefix = '', onSelection, selectedIndex, title, }: Props) => { const buttonIdGenerator = val => `${idPrefix && `${idPrefix}-`}selector-${val}`; const panelIdGenerator = val => `${idPrefix && `${idPrefix}-`}slide-panel-${val}`; return (