1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-22 14:57:40 +01:00
smov/src/components/MovieRow.js

21 lines
550 B
JavaScript
Raw Normal View History

2021-07-14 00:31:37 +02:00
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">
2021-07-14 11:18:07 +02:00
{props.title}&nbsp;
<span className="year">({props.year})</span>
2021-07-14 00:31:37 +02:00
</div>
<div className="watch">
<p>Watch {props.type}</p>
2021-07-14 00:31:37 +02:00
<Arrow/>
</div>
</div>
)
}