import { GetProviderFromId, MWMedia, MWMediaType } from "scrapers"; import { Link } from "react-router-dom"; export interface MediaCardProps { media: MWMedia; watchedPercentage: Number; } function MediaCardContent({ media, watchedPercentage }: MediaCardProps) { return ( <>

{media.title} ({GetProviderFromId(media.providerId)?.displayName})

{watchedPercentage}% watched


) } export function MediaCard(props: MediaCardProps) { const provider = GetProviderFromId(props.media.providerId); let link = "movie" if (provider?.type === MWMediaType.SERIES) link = "series"; return ( ) }