mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-22 14:57:40 +01: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>
|
||
|
)
|
||
|
}
|