import { Stack, Image, Group, Title, Badge, Text, ActionIcon, Anchor } from '@mantine/core'; import { Link } from 'tabler-icons-react'; export interface IMedia { overview: string; imdbId: any; title: string; poster: string; genres: string[]; seasonNumber?: number; episodeNumber?: number; } function MediaDisplay(props: { media: IMedia }) { const { media }: { media: IMedia } = props; return ( {media.title} ({ height: 400, })} > {media.title} {media.episodeNumber && media.seasonNumber && ( Season {media.seasonNumber} episode {media.episodeNumber} )} {media.overview} {/*Add the genres at the bottom of the poster*/} {media.genres.map((genre: string, i: number) => ( {genre} ))} ); } export function RadarrMediaDisplay(props: any) { const { media }: { media: any } = props; // Find a poster CoverType const poster = media.images.find((image: any) => image.coverType === 'poster'); // Return a movie poster containting the title and the description return ( ); } export function SonarrMediaDisplay(props: any) { const { media }: { media: any } = props; // Find a poster CoverType const poster = media.series.images.find((image: any) => image.coverType === 'poster'); // Return a movie poster containting the title and the description return ( ); }