import type { PageServerLoad } from './$types';
import { fetchCurrentlyReading, fetchFinishedBooks } from '$lib/server/atproto/books';

export const load: PageServerLoad = () => {
	// Stream both in (not awaited) so the page renders immediately behind skeletons.
	return {
		currentlyReading: fetchCurrentlyReading(),
		finishedBooks: fetchFinishedBooks()
	};
};
