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