import React from 'react' import { Arrow } from './Arrow' import './MovieRow.css' import { PercentageOverlay } from './PercentageOverlay' // title: string // onClick: () => void export function MovieRow(props) { const progressData = JSON.parse(localStorage.getItem("video-progress") || "{}") let progress; let percentage = null; if(props.type === "movie") { progress = progressData?.[props.source]?.movie?.[props.slug]?.full if(progress) { percentage = Math.floor((progress.currentlyAt / progress.totalDuration) * 100) } } return (
props.onClick && props.onClick()}>
{props.title} {props.place ? ` — Season ${props.place.season}: episode ${props.place.episode}` : ''}  ({props.year})

Watch {props.type}

) }