import { Button } from "@/components/ui/button"; import { Github, Linkedin, Mail, MapPin, Phone } from "lucide-react"; import ProfileCard from "@/components/profile-card"; import avatar from "@/assets/avatar.png"; interface HeroSectionProps { profile: { name: string; title: string; email: string; phone?: string; location: string; githubUrl?: string[]; linkedinUrl?: string; about?: { description: string[]; technologies?: string[]; }; }; } export function HeroSection({ profile }: HeroSectionProps) { const scrollToSection = (sectionId: string) => { const element = document.getElementById(sectionId); if (element) { element.scrollIntoView({ behavior: "smooth" }); } }; return (

{profile.about?.description?.map((desc, idx) => ( 0 ? "block mt-2" : undefined}> {desc} ))}

{profile.githubUrl && profile.githubUrl.length > 0 && ( <> {profile.githubUrl[1] && ( )} )} {profile.linkedinUrl && ( )}
{profile.location}
{profile.email}
{profile.phone && (
{profile.phone}
)}
); }