1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00
smov/src2/App.js
2022-02-06 20:56:48 +01:00

19 lines
399 B
JavaScript

import { SearchView } from './views/Search';
import { MovieView } from './views/Movie';
import { useMovie, MovieProvider } from './hooks/useMovie';
import './index.css';
function Router() {
const { streamData } = useMovie();
return streamData ? <MovieView /> : <SearchView />;
}
function App() {
return (
<MovieProvider>
<Router />
</MovieProvider>
);
}
export default App;