import Image from "next/image"; import { ArrowUpLeft } from "lucide-react"; import { Button } from "@/components/ui/button"; import FeaturedEvents from "@/components/home/FeaturedEvents"; import FeaturedPosts from "@/components/home/FeaturedPosts"; import ContentActionLink from "@/components/ContentActionLink"; import type { HomeContentPage, SiteContent } from "@/lib/content-cms"; import type { EventListItemSchema, PostListSchema } from "@/lib/types"; type HomeProps = { content: HomeContentPage; siteContent: SiteContent; events: EventListItemSchema[]; posts: PostListSchema[]; }; export default function Home({ content, siteContent, events, posts }: HomeProps) { const heroImage = content.hero_image || siteContent.logo || { url: "/favicon.ico", alt: siteContent.short_name || "نشان انجمن", }; return (

{siteContent.faculty_subline}

{content.hero_heading || content.title}

{content.intro}

{content.hero_body ? (

{content.hero_body}

) : null}
{content.participation_image ? (
{content.participation_image.alt
) : null}

{content.participation_heading}

{content.participation_body}

); }