- Replace mobile placeholder with Expo Router app (tabs, playback, auth, library) - Move Convex backend to @otunes/convex for web and mobile reuse - Update web app imports and API routes to use shared package
24 lines
755 B
TypeScript
24 lines
755 B
TypeScript
import { fetchQuery } from "convex/nextjs"
|
|
import { ArtistsView } from "@/components/artists-view"
|
|
import { LibraryLoading } from "@/components/library-loading"
|
|
import { api } from "@otunes/convex/_generated/api"
|
|
|
|
export default async function Page() {
|
|
const artists = await fetchQuery(api.library.browseArtists)
|
|
const albums = await fetchQuery(api.library.browseAlbums)
|
|
|
|
return (
|
|
<div className="flex h-svh flex-col">
|
|
<header className="flex items-center gap-2 border-b px-4 py-3">
|
|
<h1 className="text-lg font-semibold">Artists</h1>
|
|
</header>
|
|
|
|
{artists === undefined || albums === undefined ? (
|
|
<LibraryLoading />
|
|
) : (
|
|
<ArtistsView artists={artists} albums={albums} />
|
|
)}
|
|
</div>
|
|
)
|
|
}
|