Path: blob/main/components/dashboard/src/prebuilds/detail/PrebuildTaskErrorTab.tsx
2501 views
/**1* Copyright (c) 2024 Gitpod GmbH. All rights reserved.2* Licensed under the GNU Affero General Public License (AGPL).3* See License.AGPL.txt in the project root for license information.4*/56import { TabsContent } from "@podkit/tabs/Tabs";7import { PropsWithChildren } from "react";8import { Text } from "@podkit/typography/Text";910type Props = {11taskId?: string;12};13export const PrebuildTaskErrorTab = ({ taskId, children }: PropsWithChildren<Props>) => {14return (15<TabsContent value={taskId ?? "empty-tab"} className="h-112 mt-0 border-pk-border-base">16<div className="px-6 py-4 h-full w-full bg-pk-surface-primary text-base flex items-center justify-center">17<Text className="w-80 text-center">{children}</Text>18</div>19</TabsContent>20);21};222324