import { Stack, Image, Group, Title, Badge, Text, ActionIcon, Anchor } from '@mantine/core';
import { Link } from 'tabler-icons-react';
export interface IMedia {
id: string;
title: string;
description: string;
poster: string;
type: string;
genres: string[];
}
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 (
({
height: 400,
})}
>
{media.title}
{media.overview}
{/*Add the genres at the bottom of the poster*/}
{media.genres.map((genre: string, i: number) => (
{genre}
))}
);
}
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 (
({
height: 400,
})}
>
{media.series.title}
Season {media.seasonNumber} episode {media.episodeNumber}
{media.series.overview}
{/*Add the genres at the bottom of the poster*/}
{media.series.genres.map((genre: string, i: number) => (
{genre}
))}
);
}