2024-11-15 19:14:42 -05:00

32 lines
912 B
TypeScript

"use client";
import { RefreshCcw, Plane } from "lucide-react";
import { Button } from "@/components/ui/button";
interface HeaderProps {
currentTime: string;
}
export function Header({ currentTime }: HeaderProps) {
return (
<div className="flex items-center justify-between">
<div className="flex items-center gap-3">
<Plane className="h-8 w-8 text-blue-600 dark:text-blue-400" />
<h1 className="text-3xl font-bold tracking-tight">CZQM Ops Support Tool</h1>
</div>
<div className="flex items-center gap-4">
<p className="text-sm text-gray-600 dark:text-gray-400">
Last updated: {currentTime}
</p>
<Button
onClick={() => window.location.reload()}
variant="outline"
className="gap-2"
>
<RefreshCcw className="h-4 w-4" />
Refresh
</Button>
</div>
</div>
);
}