mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
47 lines
1.3 KiB
TypeScript
47 lines
1.3 KiB
TypeScript
import Help from "./Help";
|
|
import Logo from "./Logo";
|
|
import UserProfile from "./UserProfile";
|
|
import Button, { ButtonStyleType } from "CommonUI/src/Components/Button/Button";
|
|
import Header from "CommonUI/src/Components/Header/Header";
|
|
import { DASHBOARD_URL } from "CommonUI/src/Config";
|
|
import Navigation from "CommonUI/src/Utils/Navigation";
|
|
import React, { FunctionComponent, ReactElement } from "react";
|
|
|
|
const DashboardHeader: FunctionComponent = (): ReactElement => {
|
|
return (
|
|
<>
|
|
<Header
|
|
leftComponents={
|
|
<>
|
|
<Logo onClick={() => {}} />
|
|
</>
|
|
}
|
|
centerComponents={
|
|
<>
|
|
{/* <SearchBox
|
|
key={2}
|
|
selectedProject={props.selectedProject}
|
|
onChange={(_value: string) => { }}
|
|
/>{' '} */}
|
|
</>
|
|
}
|
|
rightComponents={
|
|
<>
|
|
<Button
|
|
title="Exit Admin"
|
|
buttonStyle={ButtonStyleType.NORMAL}
|
|
onClick={() => {
|
|
Navigation.navigate(DASHBOARD_URL);
|
|
}}
|
|
/>
|
|
<Help />
|
|
<UserProfile />
|
|
</>
|
|
}
|
|
/>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default DashboardHeader;
|