diff options
| author | Kha Nguyen <hi@khanguyen.com> | 2025-07-24 17:04:27 -0500 |
|---|---|---|
| committer | Kha Nguyen <hi@khanguyen.com> | 2025-07-24 17:04:27 -0500 |
| commit | 8e737d87e0accbf1d433f4c8b1e8e0f125849799 (patch) | |
| tree | 386560ac1449991da1ab6d43637e82046a725e71 /apps/web/src/components/header-base.tsx | |
| parent | 1ccacf6bb5db579cf6f343d9de57bce92d296f5f (diff) | |
| download | opencut-8e737d87e0accbf1d433f4c8b1e8e0f125849799.tar.gz | |
Revert "merge main"
This reverts commit 1ccacf6bb5db579cf6f343d9de57bce92d296f5f.
Diffstat (limited to 'apps/web/src/components/header-base.tsx')
| -rw-r--r-- | apps/web/src/components/header-base.tsx | 76 |
1 files changed, 37 insertions, 39 deletions
diff --git a/apps/web/src/components/header-base.tsx b/apps/web/src/components/header-base.tsx index a4863d27..0254f4a3 100644 --- a/apps/web/src/components/header-base.tsx +++ b/apps/web/src/components/header-base.tsx @@ -1,39 +1,37 @@ -"use client"; - -import { cn } from "@/lib/utils"; -import { ReactNode } from "react"; - -interface HeaderBaseProps { - leftContent?: ReactNode; - centerContent?: ReactNode; - rightContent?: ReactNode; - className?: string; - children?: ReactNode; -} - -export function HeaderBase({ - leftContent, - centerContent, - rightContent, - className, - children, -}: HeaderBaseProps) { - // If children is provided, render it directly without the grid layout - if (children) { - return ( - <header className={cn("px-6 h-16 flex items-center", className)}> - {children} - </header> - ); - } - - return ( - <header - className={cn("px-6 h-14 flex justify-between items-center", className)} - > - {leftContent && leftContent} - {centerContent && centerContent} - {rightContent && rightContent} - </header> - ); -} +"use client";
+
+import type { ReactNode } from "react";
+import { cn } from "@/lib/utils";
+
+interface HeaderBaseProps {
+ leftContent?: ReactNode;
+ centerContent?: ReactNode;
+ rightContent?: ReactNode;
+ className?: string;
+ children?: ReactNode;
+}
+
+export function HeaderBase({
+ leftContent,
+ centerContent,
+ rightContent,
+ className,
+ children,
+}: HeaderBaseProps) {
+ // If children is provided, render it directly without the grid layout
+ if (children) {
+ return (
+ <header className={cn("px-6 h-16 flex items-center", className)}>
+ {children}
+ </header>
+ );
+ }
+
+ return (
+ <header className={cn("px-6 h-14 flex justify-between", className)}>
+ {leftContent && leftContent}
+ {centerContent && centerContent}
+ {rightContent && rightContent}
+ </header>
+ );
+}
|
