mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-25 18:41:49 +01:00
16 lines
447 B
TypeScript
16 lines
447 B
TypeScript
import { useCurrentSeriesEpisodeInfo } from "../hooks/useCurrentSeriesEpisodeInfo";
|
|
|
|
export function ShowTitleControl() {
|
|
const { isSeries, currentEpisodeInfo, humanizedEpisodeId } =
|
|
useCurrentSeriesEpisodeInfo();
|
|
|
|
if (!isSeries) return null;
|
|
|
|
return (
|
|
<p className="ml-8 select-none space-x-2 text-white">
|
|
<span>{humanizedEpisodeId}</span>
|
|
<span className="opacity-50">{currentEpisodeInfo?.title}</span>
|
|
</p>
|
|
);
|
|
}
|