'use client'; import React from 'react'; import Link from 'next/link'; import { Sparkles, ArrowRight, Smartphone, Layers, ShieldCheck, LockKeyhole, ImagePlus } from 'lucide-react'; import { resolveLocalised, ToolItem, AppItem, VariantSpec } from '@/types'; import { TryItWidget } from './TryItWidget'; import { Hero3DCanvas } from '@/components/3d/Hero3DCanvas'; import { Kinetic3DText } from '@/components/ui/Kinetic3DText'; import { ShimmerBadge } from '@/components/animate-ui/ShimmerBadge'; import { BorderBeam } from '@/components/animate-ui/BorderBeam'; interface HeroSectionProps { title?: any; subtitle?: any; variant?: string; badge?: any; tryIt?: { toolRef: string; }; tool?: ToolItem | null; homeApp?: AppItem | null; variants?: VariantSpec[]; locale?: string; } export function HeroSection({ title, subtitle, variant = 'centered', badge, tool, homeApp, variants = [], locale = 'en', }: HeroSectionProps) { const resolvedTitle = resolveLocalised(title, locale); const resolvedSubtitle = resolveLocalised(subtitle, locale); const resolvedBadge = resolveLocalised(badge, locale); if (variant === 'tryit' && tool) { return ( {resolvedBadge || 'A calmer way to create'} Explore the tools Our apps No account needed Photos aren’t stored Try with a sample ); } // Centered Hero for Tools/Apps/Pricing pages return ( {resolvedBadge && ( {resolvedBadge} )} {resolvedTitle} {resolvedSubtitle} The Creative Suite Mobile Apps Suite ); }
{resolvedSubtitle}