diff --git a/src/components/player/atoms/EpisodeTitle.tsx b/src/components/player/atoms/EpisodeTitle.tsx new file mode 100644 index 00000000..f3cefcef --- /dev/null +++ b/src/components/player/atoms/EpisodeTitle.tsx @@ -0,0 +1,24 @@ +import { useTranslation } from "react-i18next"; + +import { usePlayerStore } from "@/stores/player/store"; + +export function EpisodeTitle() { + const { t } = useTranslation(); + const meta = usePlayerStore((s) => s.meta); + + if (meta?.type !== "show") return null; + + return ( +
{title || "Beep beep, Richie!"}
; +} diff --git a/src/components/player/atoms/index.ts b/src/components/player/atoms/index.ts index 80d87ffa..3487d9de 100644 --- a/src/components/player/atoms/index.ts +++ b/src/components/player/atoms/index.ts @@ -6,3 +6,5 @@ export * from "./Time"; export * from "./LoadingSpinner"; export * from "./AutoPlayStart"; export * from "./Volume"; +export * from "./Title"; +export * from "./EpisodeTitle"; diff --git a/src/components/player/base/BackLink.tsx b/src/components/player/base/BackLink.tsx index d4a3db62..31f4791d 100644 --- a/src/components/player/base/BackLink.tsx +++ b/src/components/player/base/BackLink.tsx @@ -16,8 +16,6 @@ export function BackLink() {