28 lines
1022 B
TypeScript
28 lines
1022 B
TypeScript
"use client";
|
|
|
|
import { Menu, Play } from "lucide-react";
|
|
import { useSidebar } from "@/contexts/sidebar-context";
|
|
|
|
export default function MobileTopBar() {
|
|
const { openMobile } = useSidebar();
|
|
|
|
return (
|
|
<header className="lg:hidden fixed top-0 left-0 right-0 z-40 h-14 bg-card border-b border-border flex items-center px-4 gap-3">
|
|
<button
|
|
onClick={openMobile}
|
|
aria-label="Open menu"
|
|
className="flex items-center justify-center w-10 h-10 rounded-lg text-muted-foreground hover:text-foreground hover:bg-muted transition-colors"
|
|
>
|
|
<Menu className="h-5 w-5" />
|
|
</button>
|
|
|
|
<div className="flex items-center gap-2 flex-1">
|
|
<div className="w-7 h-7 bg-gradient-to-br from-primary to-primary/80 rounded-lg flex items-center justify-center shadow-lg">
|
|
<Play className="h-3.5 w-3.5 text-primary-foreground" />
|
|
</div>
|
|
<span className="text-base font-bold text-foreground tracking-tight">NextAV</span>
|
|
</div>
|
|
</header>
|
|
);
|
|
}
|