/** * External dependencies */ import { withInstanceId } from '@wordpress/compose'; import classnames from 'classnames'; import { __ } from '@wordpress/i18n'; import { useTabState, Tab, TabList, TabPanel } from 'reakit/Tab'; /** * Internal dependencies */ import './style.scss'; const Tabs = ( { className, onSelect = () => null, tabs, activeClass = 'is-active', initialTabName, ariaLabel = __( 'Tabbed Content', 'woocommerce' ), instanceId, id, } ) => { const initialTab = initialTabName ? { selectedId: `${ instanceId }-${ initialTabName }` } : undefined; const tabState = useTabState( initialTab ); if ( tabs.length === 0 ) { return null; } return (