import { useState } from 'react'; import { Card, CardHeader, CardBody, Content, Grid, GridItem, PageSection, Tabs, Tab, TabContent, TabContentBody, TabTitleText, Title, TitleSizes, CardTitle } from '@patternfly/react-core'; import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper'; export const NestedUnindentedTabs: React.FunctionComponent = () => { const [activeTabKey, setActiveTabKey] = useState(1); const [activeNestedTabKey, setActiveNestedTabKey] = useState(10); // Toggle currently active tab const handleTabClick = (tabIndex: number) => setActiveTabKey(tabIndex); // Toggle currently active nested tab const handleNestedTabClick = (tabIndex: number) => setActiveNestedTabKey(tabIndex); const tabContent = ( Get started with Red Hat Enterprise Linux handleNestedTabClick(Number(tabIndex))} id="nested-tabs-example-nested-tabs-list" > x86 architecture} tabContentId={`tabContent${10}`} /> Additional Architectures} tabContentId={`tabContent${11}`} /> ); return ( handleTabClick(Number(tabIndex))} usePageInsets id="nested-tabs-example-tabs-list" > What's new} tabContentId={`tabContent${0}`} /> Get started} tabContentId={`tabContent${1}`} /> Knowledge} tabContentId={`tabContent${2}`} /> Support} tabContentId={`tabContent${3}`} /> ); };