import {useRef} from 'react'; import {useRouteNode} from 'react-router5' import Browser from './Browser'; import ArtistPage from './ArtistPage'; import AlbumPage from './AlbumPage'; export default function Main({dispatch}) { const scrollRef = useRef(null); const { route } = useRouteNode(''); let content =

Page not found!

; if (route.name === 'browser') content = else if (route.name === 'artist') content = else if (route.name === 'album') content = return (
{ content }
) }