README covers YouTube RTMPS relay, time-slot mode, ops/Netdata, and global SOCKS plan. Relay pipeline keeps FFmpeg alive across probe flicker, stabilizes time-slot source selection, and fixes misleading start-button copy in the UI. Co-authored-by: Cursor <cursoragent@cursor.com>
31 lines
1018 B
TypeScript
31 lines
1018 B
TypeScript
"use client";
|
|
|
|
import Link from "next/link";
|
|
|
|
import { navPathActive, type NavItem } from "@/lib/shellNav";
|
|
|
|
export function ShellSubTabs({ tabs, pathname }: { tabs: NavItem[]; pathname: string }) {
|
|
if (!tabs.length) return null;
|
|
return (
|
|
<nav className="mt-3 flex gap-1.5 overflow-x-auto pb-1 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden">
|
|
{tabs.map((item) => {
|
|
const active = navPathActive(pathname, item.href);
|
|
return (
|
|
<Link
|
|
key={item.href}
|
|
href={item.href}
|
|
className={`shrink-0 rounded-lg px-2.5 py-1.5 text-xs sm:px-3 sm:text-sm ${
|
|
active
|
|
? "bg-teal-500/15 text-teal-100 ring-1 ring-teal-400/35"
|
|
: "bg-white/[0.04] text-slate-400 ring-1 ring-white/10 hover:bg-white/10 hover:text-slate-200"
|
|
}`}
|
|
>
|
|
<span className="mr-1">{item.emoji}</span>
|
|
{item.label}
|
|
</Link>
|
|
);
|
|
})}
|
|
</nav>
|
|
);
|
|
}
|