From 450a1f1cf992e6da0d120f46359bf5dac7904e85 Mon Sep 17 00:00:00 2001 From: georgepoladashvili Date: Tue, 17 Dec 2024 23:41:56 +0100 Subject: [PATCH] feat(www): docs-migration | added children to Header --- apps/www/app/components/Header.tsx | 100 +++++++++++++++-------------- 1 file changed, 53 insertions(+), 47 deletions(-) diff --git a/apps/www/app/components/Header.tsx b/apps/www/app/components/Header.tsx index 4da68f2..0f2647d 100644 --- a/apps/www/app/components/Header.tsx +++ b/apps/www/app/components/Header.tsx @@ -10,63 +10,69 @@ type HeaderProps = { disableIcon?: boolean; }; -export function Header({disableIcon = false}: HeaderProps) { +export function Header({ + disableIcon = false, + children, +}: React.PropsWithChildren) { const projectId = useProjectId(); return ( -
-
- {disableIcon ? ( - <> - ) : ( -
- - - -
- )} -

ReChunk

-
-
- - - - - - - {!!projectId && ( -
+
+
+
+ {disableIcon ? ( + <> + ) : ( + + )} +

ReChunk

+
+
+ - - )} -
- - Docs - + + + + + {!!projectId && ( +
+ +
+ )} +
+ {children}
); }