mirror of
https://github.com/movie-web/movie-web.git
synced 2024-06-03 05:28:43 +02:00
21 lines
610 B
JavaScript
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>
|
|
)
|
|
}
|