redoing navigation logic to favor more local

This commit is contained in:
2026-02-19 15:59:50 -05:00
parent 8e0f90f449
commit 1c65c85d02
9 changed files with 230 additions and 266 deletions

View File

@@ -1,4 +1,3 @@
import { PageProps } from "@/App";
import { PlaybackControls } from "./PlaybackControls";
import { RealtimeWaveform } from "./RealtimeWaveform";
import { useAudio } from "@/hooks/useAudio";
@@ -10,7 +9,7 @@ enum PlayerPaneType {
}
export const PlayerPaneCount = 1;
export function PlayerPage(props: PageProps) {
export function PlayerPage() {
const audio = useAudio();
const { theme } = useTheme();
@@ -40,7 +39,13 @@ export function PlayerPage(props: PageProps) {
{audio.error() && <text fg={theme.error}>{audio.error()}</text>}
<box border borderColor={theme.border} padding={1} flexDirection="column" gap={1}>
<box
border
borderColor={theme.border}
padding={1}
flexDirection="column"
gap={1}
>
<text fg={theme.text}>
<strong>{audio.currentEpisode()?.title}</strong>
</text>