diff --git a/apps/web/components/marketing/hero.tsx b/apps/web/components/marketing/hero.tsx index dce029a..7d5f647 100644 --- a/apps/web/components/marketing/hero.tsx +++ b/apps/web/components/marketing/hero.tsx @@ -4,9 +4,16 @@ import Link from "next/link"; import { ROUTES } from "../../data/routes.data"; import capture from "../../public/images/hero/capture.png"; import appLogo from "../../public/images/logo.png"; +import { Post } from "@changespage/react"; const version = require("../../package.json").version; -export default function Hero({ stars = null }: { stars?: string | null }) { +export default function Hero({ + stars = null, + latestPost = null, +}: { + stars?: string | null; + latestPost: Post | null; +}) { return (
- Just shipped v{version} + {latestPost ? ( + {latestPost.title} + ) : ( + Just shipped v{version} + )}