"use client";

import { ThemeToggle } from "./theme-toggle";
import { ApiStatus } from "../shared/api-status";

interface HeaderProps {
  title?: string;
}

export function Header({ title = "Dashboard" }: HeaderProps) {
  return (
    <header className="sticky top-0 z-30 h-16 bg-background/80 backdrop-blur-sm border-b border-border">
      <div className="flex h-full items-center justify-between px-6">
        <h1 className="text-xl font-semibold text-foreground">{title}</h1>
        <div className="flex items-center gap-4">
          <ApiStatus />
          <ThemeToggle />
        </div>
      </div>
    </header>
  );
}
