"use client"; import type { ReactNode } from "react"; import { Icon } from "@iconify/react"; import { useLocale, useTranslations } from "next-intl"; import { useRouter } from "@/i18n/routing"; import { Button, ButtonIcon, ButtonLabel, TextEffect, Typography, } from "poyraz-ui/atoms"; import { getResumeHref } from "@/lib/links"; import { HomeNewsCard } from "@/components/home-news-card"; type HomeHeroProps = { children?: ReactNode; news: { id: string; category: string; title: string; date: string; image: string; href: string; }[]; }; export function HomeHero({ children, news }: HomeHeroProps) { const t = useTranslations("Home"); const locale = useLocale(); const router = useRouter(); return (
Poyraz{" "} Avsever {t("heroDescription")}
{children}
{t("readMyPosts")}
{news.map((item, index) => ( ))}
); }