import { Handlers, PageProps } from "$fresh/server.ts"; import { MainLayout } from "@components/layouts/main.tsx"; import { getMovie, Movie } from "@lib/resource/movies.ts"; import { RecipeHero } from "@components/RecipeHero.tsx"; import { KMenu } from "@islands/KMenu.tsx"; import { HashTags } from "@components/HashTags.tsx"; export const handler: Handlers = { async GET(_, ctx) { const movie = await getMovie(ctx.params.name); return ctx.render(movie); }, }; export default function Greet(props: PageProps) { const movie = props.data; const { author = "", date = "" } = movie.meta; console.log(movie.description); return ( {movie.tags.length > 0 && ( <>
)}
{movie?.description?.length > 80 ?

Review

: <>}
          {movie.description}
        
); }