Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/dashboard/src/admin/AdminPageHeader.tsx
2500 views
1
/**
2
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
3
* Licensed under the GNU Affero General Public License (AGPL).
4
* See License.AGPL.txt in the project root for license information.
5
*/
6
7
import Header from "../components/Header";
8
import { getAdminTabs } from "./admin.routes";
9
10
export interface AdminPageHeaderProps {
11
title: string;
12
subtitle: string;
13
children: React.ReactNode;
14
}
15
16
export function AdminPageHeader({ title, subtitle, children }: AdminPageHeaderProps) {
17
return (
18
<>
19
<Header title={title} subtitle={subtitle} tabs={getAdminTabs()} />
20
{children}
21
</>
22
);
23
}
24
25