import Link from "next/link"; import { cookies } from "next/headers"; import AppNav, { placeOf } from "@/components/AppNav"; import { homeHref } from "@/lib/hrefs"; import { THEME_COOKIE, parseTheme } from "@/lib/theme"; import CreateMenu from "./CreateMenu"; import JumpButton from "./JumpButton"; import PhoneDock from "./PhoneDock"; import ThemeControl from "./ThemeControl"; import { Mark, Wordmark } from "./Wordmark"; // --------------------------------------------------------------------------- // The rail (canvas `.rail`): every page's left column. Top to bottom: // the mark and the wordmark (home), the places (Inbox · Research · Work · // Tools · Settings, components/AppNav.tsx), + Create, Jump to… ⌘K, and at // the foot the theme. NAVIGATION ONLY (the redesign's L4): what is Running // and the Recent cuts are on home, beside the Inbox; Pinned, which never had // a store, is gone. // // SERVER ONLY: it reads the theme cookie. // A client page (the song deck) gets it from its server page instead. // // Jump (⌘K) opens the palette (JumpPalette.tsx, in the root layout). // // On a phone (below md) the rail is not drawn and the PHONE DOCK, rendered // here beside it, carries the places at the foot of the screen (PhoneDock.tsx). // --------------------------------------------------------------------------- export default async function AppRail({ active }: { active: string }) { const theme = parseTheme((await cookies()).get(THEME_COOKIE)?.value); return ( <>