Create temp recipe page

This commit is contained in:
Sam Becker 2025-02-20 09:13:09 -06:00
parent 4cc0838403
commit 66ccc5cf03

22
app/admin/recipe/page.tsx Normal file
View File

@ -0,0 +1,22 @@
import SiteGrid from '@/components/SiteGrid';
import { getPhotos } from '@/photo/db/query';
import PhotoRecipe from '@/photo/PhotoRecipe';
import clsx from 'clsx/lite';
export default async function AdminRecipePage() {
const photos = await getPhotos({ hidden: 'only' });
const { fujifilmRecipe } = photos[0];
return (
<SiteGrid
contentMain={<div className={clsx(
'w-full min-h-[600px]',
'flex items-center justify-center',
)}>
{fujifilmRecipe &&
<PhotoRecipe recipe={fujifilmRecipe} />
}
</div>}
/>
);
}