mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-18 02:48:28 +00:00
21 lines
553 B
JavaScript
21 lines
553 B
JavaScript
import React from 'react'
|
|
import { Arrow } from './Arrow'
|
|
import './MovieRow.css'
|
|
|
|
// title: string
|
|
// onClick: () => void
|
|
export function MovieRow(props) {
|
|
return (
|
|
<div className="movieRow" onClick={() => props.onClick && props.onClick()}>
|
|
<div className="left">
|
|
{props.title}
|
|
</div>
|
|
<div className="watch">
|
|
<span className="attribute">year: {props.year}</span>
|
|
<p>Watch {props.type}</p>
|
|
<Arrow/>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|