import type { PageServerLoad } from './$types';
import { fetchRecentPlays } from '$lib/server/atproto/music';

export const load: PageServerLoad = ({ fetch }) => {
	// Stream the plays in (not awaited) so the page shell renders immediately and
	// the slow cover-art resolution happens behind a skeleton.
	return { recentPlays: fetchRecentPlays(fetch) };
};
