import React from 'react'; import { Card, CardHeader, CardBody, Grid, GridItem, PageSection, Tabs, Tab, TabContent, TabContentBody, TabTitleText, Title, Text, TextContent, TitleSizes, CardTitle } from '@breakaway/preact-core'; import DashboardWrapper from '@breakaway/preact-core/src/demos/examples/DashboardWrapper'; export const NestedUnindentedTabs: React.FunctionComponent = () => { const [activeTabKey, setActiveTabKey] = React.useState(1); const [activeNestedTabKey, setActiveNestedTabKey] = React.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}`} /> ); };