mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-15 23:01:28 +08:00

* feat: base setup for in product home page * feat: base state * feat: add empty states for alerts, traces, dashboards, saved views * feat: add checklist component * feat: integrate all panels * feat: integrate preference api and clean up components * feat: handle done and skip states of the checklist * feat: update ui * feat: update ui * feat: code cleanup * feat: add events * feat: support time interval change in services * feat: add service time change event and cleanup code * feat: handle light mode * feat: address review comments * fix: routing issues * fix: testcase snapshot, a minor ui improvements * fix: noopener typo in window.open
18 lines
388 B
TypeScript
18 lines
388 B
TypeScript
import './Header.styles.scss';
|
|
|
|
export default function Header({
|
|
leftComponent,
|
|
rightComponent,
|
|
}: {
|
|
leftComponent: React.ReactNode;
|
|
rightComponent: React.ReactNode | null;
|
|
}): JSX.Element {
|
|
return (
|
|
<div className="header-container">
|
|
<div className="header-left">{leftComponent}</div>
|
|
|
|
{rightComponent && <div className="header-right">{rightComponent}</div>}
|
|
</div>
|
|
);
|
|
}
|