17 lines
452 B
TypeScript
17 lines
452 B
TypeScript
import AdminComponentPageClient from '@/admin/AdminComponentPageClient';
|
|
import { getPhotosCached, getPhotosMetaCached } from '@/photo/cache';
|
|
|
|
export default async function ComponentsPage() {
|
|
const photos = await getPhotosCached();
|
|
const photosCount = await getPhotosMetaCached()
|
|
.then(({ count }) => count);
|
|
|
|
return (
|
|
<AdminComponentPageClient
|
|
photo={photos[0]}
|
|
photos={photos}
|
|
photosCount={photosCount}
|
|
/>
|
|
);
|
|
}
|