import { Handlers, PageProps } from "$fresh/server.ts"; import { IngredientsList } from "@components/IngredientsList.tsx"; import { RecipeHero } from "@components/RecipeHero.tsx"; import { MainLayout } from "@components/layouts/main.tsx"; import { Recipe } from "@lib/recipes.ts"; import { getRecipe } from "../api/recipes/[name].ts"; export const handler: Handlers = { async GET(_, ctx) { const recipe = await getRecipe(ctx.params.name); return ctx.render(recipe); }, }; export default function Greet(props: PageProps) { return (

Ingredients

Preparation

); }