import cn from "classnames" ; import React , { FunctionComponent } from "react" ; export interface TabContentProps { /**
     * Active tab id/name
     */ activeTab ? : string ; /**
     * classNames
     */ className ? : string ; } const TabContent = ( props ) => { const { children , activeTab , className } = props ; return ( < > { React . Children . toArray ( children ) . filter ( ( child ) => child . props . tabID === activeTab ) . map ( ( child , i ) => React . cloneElement ( child , { tabID : child . props . tabID ? child . props . tabID : i , className : cn ( className , child . props . className ) , } ) ) } < />); } ; export default TabContent ;