mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-21 14:47:41 +01:00
20 lines
476 B
JavaScript
20 lines
476 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">
|
||
|
<p>Watch movie</p>
|
||
|
<Arrow/>
|
||
|
</div>
|
||
|
</div>
|
||
|
)
|
||
|
}
|