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