diff --git a/src/components/buttons/playButton.tsx b/src/components/buttons/playButton.tsx index d5b8042..ef65fa9 100644 --- a/src/components/buttons/playButton.tsx +++ b/src/components/buttons/playButton.tsx @@ -359,11 +359,10 @@ const PlayButton = ({ sx={sx} size={size} disabled={ - currentEpisode.isPending || - (itemType === BaseItemKind.Series && - (!currentEpisode.data || - !currentEpisode.data.Items || - currentEpisode.data.Items.length === 0)) + itemType === BaseItemKind.Series && + (!currentEpisode.data || + !currentEpisode.data.Items || + currentEpisode.data.Items.length === 0) } {...buttonProps} > diff --git a/src/components/itemHeader/index.tsx b/src/components/itemHeader/index.tsx index 964e8b4..35b3ee0 100644 --- a/src/components/itemHeader/index.tsx +++ b/src/components/itemHeader/index.tsx @@ -1,7 +1,319 @@ -import React from "react"; +import type { Api } from "@jellyfin/sdk"; +import type { BaseItemDto } from "@jellyfin/sdk/lib/generated-client"; +import Chip from "@mui/material/Chip"; +import { green, red, yellow } from "@mui/material/colors"; +import Stack from "@mui/material/Stack"; +import Typography from "@mui/material/Typography"; +import React, { type ReactNode, type RefObject } from "react"; +import { Blurhash } from "react-blurhash"; +import heroBg from "@/assets/herobg.png"; +import ultraHdIcon from "@/assets/icons/4k.svg"; +import dolbyAtmosIcon from "@/assets/icons/dolby-atmos.svg"; +import dolbyDigitalIcon from "@/assets/icons/dolby-digital.svg"; +import dolbyTrueHDIcon from "@/assets/icons/dolby-truehd.svg"; +import dolbyVisionIcon from "@/assets/icons/dolby-vision.svg"; +import dolbyVisionAtmosIcon from "@/assets/icons/dolby-vision-atmos.png"; +import dtsIcon from "@/assets/icons/dts.svg"; +import dtsHdMaIcon from "@/assets/icons/dts-hd-ma.svg"; +import hdIcon from "@/assets/icons/hd.svg"; +import hdrIcon from "@/assets/icons/hdr.svg"; +import hdr10Icon from "@/assets/icons/hdr10.svg"; +import hdr10PlusIcon from "@/assets/icons/hdr10-plus.svg"; +import sdIcon from "@/assets/icons/sd.svg"; +import sdrIcon from "@/assets/icons/sdr.svg"; +import ItemBackdrop from "@/components/itemBackdrop"; +import { getTypeIcon } from "@/components/utils/iconsCollection"; +import { endsAt, getRuntime } from "@/utils/date/time"; +import getImageUrlsApi from "@/utils/methods/getImageUrlsApi"; +import type MediaQualityInfo from "@/utils/types/mediaQualityInfo"; +import "./itemHeader.scss"; -const ItemHeader = () => { - return