diff --git a/packages/web/src/routes/index.tsx b/packages/web/src/routes/index.tsx index 2167a73f..ad8322d0 100644 --- a/packages/web/src/routes/index.tsx +++ b/packages/web/src/routes/index.tsx @@ -1,18 +1,72 @@ -import { useState, type FormEvent } from "react" +import { useState, useEffect, type FormEvent } from "react" import { createFileRoute, Link } from "@tanstack/react-router" import { ShaderBackground } from "@/components/ShaderBackground" import { authClient } from "@/lib/auth-client" import { useAccount } from "jazz-tools/react" import { ViewerAccount, type SavedUrl } from "@/lib/jazz/schema" -import { Link2, Plus, Trash2, ExternalLink, Video, Settings, LogOut } from "lucide-react" +import { JazzProvider } from "@/lib/jazz/provider" +import { Link2, Plus, Trash2, ExternalLink, Video, Settings, LogOut, Radio } from "lucide-react" // Feature flag: only this email can access stream features const STREAM_ENABLED_EMAIL = "nikita@nikiv.dev" +function LiveNowSidebar({ isLive }: { isLive: boolean }) { + if (!isLive) return null + + return ( +
+ nikiv
+Streaming now
+