Path: blob/main/components/dashboard/src/error-pages/ErrorPageLayout.tsx
2499 views
/**1* Copyright (c) 2023 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 gitpodIcon from "../images/gitpod.svg";7import gitpodDarkIcon from "../images/gitpod-dark.svg";8import { useTheme } from "../theme-context";9import { FC } from "react";10import "../dedicated-setup/styles.css";1112export const ErrorPageLayout: FC = ({ children }) => {13const { isDark } = useTheme();14return (15<div className="container">16<div className="app-container">17<div className="flex items-center justify-center items-center py-3">18<img src={isDark ? gitpodDarkIcon : gitpodIcon} className="h-8" alt="Gitpod's logo" />19</div>20<div className={`mt-24 max-w-lg mx-auto text-center`}>21<div>{children}</div>22</div>23</div>24</div>25);26};272829