mirror of
https://github.com/makeplane/plane.git
synced 2025-12-23 07:09:34 +01:00
17 lines
453 B
TypeScript
17 lines
453 B
TypeScript
|
|
import { ReactNode } from "react";
|
||
|
|
import { AppSidebarToggleButton } from "@/components/sidebar";
|
||
|
|
import { useAppTheme } from "@/hooks/store/use-app-theme";
|
||
|
|
|
||
|
|
export const ExtendedAppHeader = (props: { header: ReactNode }) => {
|
||
|
|
const { header } = props;
|
||
|
|
// store hooks
|
||
|
|
const { sidebarCollapsed } = useAppTheme();
|
||
|
|
|
||
|
|
return (
|
||
|
|
<>
|
||
|
|
{sidebarCollapsed && <AppSidebarToggleButton />}
|
||
|
|
<div className="w-full">{header}</div>
|
||
|
|
</>
|
||
|
|
);
|
||
|
|
};
|