import { Router, Route } from 'preact-router';
import { Home } from './pages/Home.js';
import { Recom } from './pages/Recom.js';
import { RecommendationsProvider } from './context/RecommendationsContext.js';

export function App() {
  return (
    <RecommendationsProvider>
      <Router>
        <Route path="/" component={Home} />
        <Route path="/recom/:id" component={Recom} />
      </Router>
    </RecommendationsProvider>
  );
}
