mirror of
https://github.com/p-stream/p-stream.git
synced 2026-05-13 05:31:27 +00:00
24 lines
606 B
TypeScript
24 lines
606 B
TypeScript
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 (
|
|
<div>
|
|
<span className="text-white font-medium mr-3">
|
|
{t("seasons.seasonAndEpisode", {
|
|
season: meta?.season?.number,
|
|
episode: meta?.episode?.number,
|
|
})}
|
|
</span>
|
|
<span className="text-type-secondary font-medium">
|
|
{meta?.episode?.title}
|
|
</span>
|
|
</div>
|
|
);
|
|
}
|