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