import { Link, router } from '@inertiajs/react'; import { ArrowRight, Search } from 'lucide-react'; import { useEffect, useState } from 'react'; import type { HomeResponse } from '@/lib/portal-api'; const slides = [ { image: '/images/hero/hero-1.webp', mobile: '/images/hero/hero-1-mobile.webp', }, { image: '/images/hero/hero-3.webp', mobile: '/images/hero/hero-3-mobile.webp', }, ]; const heroTitle = 'INVISTA EM MOÇAMBIQUE'; const heroSubtitle = 'Transforme informação em decisões e ideias em negócios reais.'; const typingStart = 250; const titleStep = 50; const subtitleStep = 28; const subtitleStart = typingStart + heroTitle.length * titleStep + 150; const typingDuration = subtitleStart + heroSubtitle.length * subtitleStep; function TypewriterLine({ text, visibleText, caret = false, running, }: { text: string; visibleText: string; caret?: boolean; running: boolean; }) { return ( {text} {/* Reserve the final wrapping before the first character appears. */}