2026-11-02 18:40:35 -05:00
|
|
|
import { renderPage } from "./page";
|
|
|
|
|
import { renderWeekGrid } from "./week-grid";
|
|
|
|
|
import { renderAgenda } from "./agenda";
|
2026-11-02 18:23:57 -05:00
|
|
|
import type { Show, Preferences } from "../types";
|
2026-11-02 18:40:35 -05:00
|
|
|
|
|
|
|
|
export function renderWeekPage(shows: Show[], prefs: Preferences): string {
|
|
|
|
|
const grid = renderWeekGrid(shows, prefs);
|
|
|
|
|
const agenda = renderAgenda(shows, prefs);
|
|
|
|
|
const bodyContent = grid + agenda;
|
|
|
|
|
const modeLabel = prefs.mode === "vcr" ? "VCR Schedule" : "All Shows Schedule";
|
|
|
|
|
return renderPage(modeLabel, bodyContent, prefs);
|
2026-11-02 18:23:57 -05:00
|
|
|
}
|