movie-web/__old/controls/ShowTitleControl.tsx

16 lines
447 B
TypeScript
Raw Normal View History

import { useCurrentSeriesEpisodeInfo } from "../hooks/useCurrentSeriesEpisodeInfo";
export function ShowTitleControl() {
2023-01-24 14:38:37 +01:00
const { isSeries, currentEpisodeInfo, humanizedEpisodeId } =
useCurrentSeriesEpisodeInfo();
if (!isSeries) return null;
return (
<p className="ml-8 select-none space-x-2 text-white">
2023-01-24 14:38:37 +01:00
<span>{humanizedEpisodeId}</span>
<span className="opacity-50">{currentEpisodeInfo?.title}</span>
</p>
);
}