Path: blob/main/components/dashboard/src/org-admin/MaintenanceModeBanner.tsx
2499 views
/**1* Copyright (c) 2025 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 { FC } from "react";7import Alert from "../components/Alert";8import { useMaintenanceMode } from "../data/maintenance-mode/maintenance-mode-query";910export const MaintenanceModeBanner: FC = () => {11const { isMaintenanceMode } = useMaintenanceMode();1213if (!isMaintenanceMode) {14return null;15}1617return (18<Alert type="warning" className="mb-2">19<div className="flex items-center flex-wrap gap-2">20<span className="font-semibold">System is in maintenance mode.</span>21<span>Starting new workspaces is currently disabled by your organization owner.</span>22</div>23</Alert>24);25};262728