diff --git a/packages/canon/src/components/Header/Header.tsx b/packages/canon/src/components/Header/Header.tsx
index 26a3b066d7..4f551d60b8 100644
--- a/packages/canon/src/components/Header/Header.tsx
+++ b/packages/canon/src/components/Header/Header.tsx
@@ -16,9 +16,9 @@
import type { HeaderProps } from './types';
import { HeaderToolbar } from './HeaderToolbar';
-import { HeaderTabs } from './HeaderTabs';
-import { RouterProvider } from 'react-aria-components';
-import { type NavigateOptions, useHref, useNavigate } from 'react-router-dom';
+import { Tabs, Tab } from '../Tabs';
+import { useStyles } from '../../hooks/useStyles';
+import { type NavigateOptions } from 'react-router-dom';
declare module 'react-aria-components' {
interface RouterConfig {
@@ -33,12 +33,13 @@ declare module 'react-aria-components' {
*/
export const Header = (props: HeaderProps) => {
const { tabs, icon, title, menuItems, breadcrumbs, customActions } = props;
- let navigate = useNavigate();
+
+ const { classNames } = useStyles('Header');
const hasTabs = tabs && tabs.length > 0;
return (
-
+ <>
{
customActions={customActions}
hasTabs={hasTabs}
/>
-
-
+
+
+ {tabs?.map(tab => (
+
+ {tab.label}
+
+ ))}
+
+
+ >
);
};
diff --git a/packages/canon/src/components/Header/HeaderTabs.tsx b/packages/canon/src/components/Header/HeaderTabs.tsx
deleted file mode 100644
index 4eb6345931..0000000000
--- a/packages/canon/src/components/Header/HeaderTabs.tsx
+++ /dev/null
@@ -1,103 +0,0 @@
-/*
- * Copyright 2024 The Backstage Authors
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import { Tabs, TabList, Tab as AriaTab } from 'react-aria-components';
-import { useStyles } from '../../hooks/useStyles';
-import { useRef, useState } from 'react';
-import { HeaderTabsIndicators } from './HeaderTabsIndicators';
-import type { HeaderProps, HeaderTabProps } from './types';
-import { useLocation } from 'react-router-dom';
-
-/**
- * A component that renders header tabs.
- *
- * @internal
- */
-export const HeaderTabs = (props: HeaderProps) => {
- const { tabs } = props;
- const { classNames } = useStyles('Header');
- const tabsRef = useRef(null);
- const tabRefs = useRef