import { Stack, Paper, Image, Group, Title, Badge, Text } from '@mantine/core'; export interface IMedia { id: string; title: string; description: string; poster: string; type: string; genres: string[]; } export default function MediaDisplay(props: any) { const { media }: { media: any } = props; // Return a movie poster containting the title and the description return ( {media.title} ({ height: 400, })} > {media.title} {media.overview} {/*Add the genres at the bottom of the poster*/} {media.genres.map((genre: string, i: number) => ( {genre} ))} ); }