mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-11 17:55:33 +00:00
Update InfoButton.tsx
This commit is contained in:
parent
6331e69a2f
commit
050c4cc3a8
1 changed files with 10 additions and 1 deletions
|
|
@ -33,11 +33,20 @@ export function InfoButton() {
|
|||
return null;
|
||||
}
|
||||
|
||||
// Don't render button if meta, tmdbId, or type is missing/invalid
|
||||
if (
|
||||
!meta?.tmdbId ||
|
||||
!meta.type ||
|
||||
(meta.type !== "movie" && meta.type !== "show")
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<VideoPlayerButton
|
||||
icon={Icons.CIRCLE_QUESTION}
|
||||
iconSizeClass="text-base"
|
||||
className="p-2 !-mr-2"
|
||||
className="p-2 !-mr-2 relative z-10"
|
||||
onClick={handleClick}
|
||||
/>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue