Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/dashboard/src/prebuilds/detail/PrebuildTaskErrorTab.tsx
2501 views
1
/**
2
* Copyright (c) 2024 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 { TabsContent } from "@podkit/tabs/Tabs";
8
import { PropsWithChildren } from "react";
9
import { Text } from "@podkit/typography/Text";
10
11
type Props = {
12
taskId?: string;
13
};
14
export const PrebuildTaskErrorTab = ({ taskId, children }: PropsWithChildren<Props>) => {
15
return (
16
<TabsContent value={taskId ?? "empty-tab"} className="h-112 mt-0 border-pk-border-base">
17
<div className="px-6 py-4 h-full w-full bg-pk-surface-primary text-base flex items-center justify-center">
18
<Text className="w-80 text-center">{children}</Text>
19
</div>
20
</TabsContent>
21
);
22
};
23
24