diff --git a/src/components/ExternalLinkBlock/index.tsx b/src/components/ExternalLinkBlock/index.tsx index 9199da7d..d78b6931 100644 --- a/src/components/ExternalLinkBlock/index.tsx +++ b/src/components/ExternalLinkBlock/index.tsx @@ -12,8 +12,10 @@ import useSettings from '@app/hooks/useSettings'; import { MediaType } from '@server/constants/media'; import { MediaServerType } from '@server/constants/server'; +type ExternalLinkType = 'movie' | 'tv' | 'person'; + interface ExternalLinkBlockProps { - mediaType: 'movie' | 'tv'; + mediaType: ExternalLinkType; tmdbId?: number; tvdbId?: number; imdbId?: string; @@ -71,7 +73,7 @@ const ExternalLinkBlock = ({ )} - {imdbId && ( + {imdbId && mediaType !== 'person' && ( )} + {imdbId && mediaType === 'person' && ( + + + + )} {rtUrl && ( )} - {tmdbId && ( + {tmdbId && mediaType !== 'person' && ( { {mediaTypePicker} + + + + + {personAttributes.join(' | ')} {(data.alsoKnownAs ?? []).length > 0 && (