import { Handlers, PageProps } from "$fresh/server.ts"; import { RecipeCard } from "@components/RecipeCard.tsx"; import { MainLayout } from "@components/layouts/main.tsx"; import { Recipe } from "@lib/recipes.ts"; import { getRecipes } from "../api/recipes/index.ts"; import IconArrowLeft from "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/arrow-left.tsx"; export const handler: Handlers = { async GET(_, ctx) { const recipes = await getRecipes(); return ctx.render(recipes); }, }; export default function Greet(props: PageProps) { return (
Back

Recipes

{props.data?.map((doc) => { return ; })}
); }