25 lines
689 B
TypeScript
25 lines
689 B
TypeScript
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, filmSimulation } = photos[0];
|
|
return (
|
|
<SiteGrid
|
|
contentMain={<div className={clsx(
|
|
'w-full min-h-[min(500px,70vh)]',
|
|
'flex items-center justify-center',
|
|
)}>
|
|
{(fujifilmRecipe && filmSimulation) &&
|
|
<PhotoRecipe
|
|
recipe={fujifilmRecipe}
|
|
simulation={filmSimulation}
|
|
/>
|
|
}
|
|
</div>}
|
|
/>
|
|
);
|
|
}
|