movie-web/src/views/Movie.js
2021-07-13 23:31:37 +01:00

21 lines
610 B
JavaScript

import React from 'react'
import { Title } from '../components/Title'
import { Card } from '../components/Card'
import { useMovie } from '../hooks/useMovie'
import { VideoElement } from '../components/VideoElement'
export function MovieView(props) {
const { streamUrl, streamData } = useMovie();
return (
<div className="cardView">
<Card fullWidth>
<Title accent="Return to home" accentLink="search">
{ streamData.title }
</Title>
<VideoElement streamUrl={streamUrl}/>
</Card>
</div>
)
}