{/* card content */}
{/* hoverable chevron */}
import { getProviderFromId, MWMedia, MWMediaType } from "providers"; import { Link } from "react-router-dom"; import { Icon, Icons } from "components/Icon"; export interface MediaCardProps { media: MWMedia; watchedPercentage: Number; linkable?: boolean; } export interface MediaMetaProps { content: string[]; } function MediaMeta(props: MediaMetaProps) { return (
{props.content.map((item, index) => ( {index !== 0 ? ( ● ) : null} {item} ))}
); } function MediaCardContent({ media, linkable, watchedPercentage, }: MediaCardProps) { const provider = getProviderFromId(media.providerId); if (!provider) { return null; } return (