Vercel/app/admin/outdated/page.tsx
2025-02-23 23:41:05 -06:00

18 lines
455 B
TypeScript

import AdminOutdatedClient from '@/admin/AdminOutdatedClient';
import { AI_TEXT_GENERATION_ENABLED } from '@/app/config';
import { getOutdatedPhotos } from '@/photo/db/query';
export const maxDuration = 60;
export default async function AdminOutdatedPage() {
const photos = await getOutdatedPhotos()
.catch(() => []);
return (
<AdminOutdatedClient {...{
photos,
hasAiTextGeneration: AI_TEXT_GENERATION_ENABLED,
}} />
);
}