mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-22 14:57:40 +01:00
20 lines
550 B
JavaScript
20 lines
550 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}
|
|
<span className="year">({props.year})</span>
|
|
</div>
|
|
<div className="watch">
|
|
<p>Watch {props.type}</p>
|
|
<Arrow/>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|