import React from 'react' import { Arrow } from './Arrow' // import { Cross } from './Crosss' import { PercentageOverlay } from './PercentageOverlay' import './MovieRow.css' // 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 ? ` - S${props.place.season}:E${props.place.episode}` : ''}  ({props.year})

Watch {props.type}

) }