import React from 'react'; import Link from 'next/link'; import { Smartphone, Star, Check, ArrowRight } from 'lucide-react'; import { KineticText } from '@/components/magicui/kinetic-text'; import { AppItem, resolveLocalised } from '@/types'; interface AppCardsSectionProps { title?: any; subtitle?: any; apps?: AppItem[]; layout?: 'compact' | 'detailed'; showRating?: boolean; locale?: string; } export function AppCardsSection({ title, subtitle, apps = [], showRating = true, locale = 'en', }: AppCardsSectionProps) { return (
{(title || subtitle) && (
{title && (

{resolveLocalised(title, locale)}

)} {subtitle && (

{resolveLocalised(subtitle, locale)}

)}
)}
{apps.map((app) => (
{/* Header: Icon & Rating */}
{showRating && (
{app.rating.value} ({(app.rating.count / 1000).toFixed(1)}k)
)}

{resolveLocalised(app.name, locale)}

{resolveLocalised(app.tagline, locale)}

{resolveLocalised(app.description, locale)}

{/* Features Checklist */} {app.features && app.features.length > 0 && (
{app.features.slice(0, 3).map((feat, idx) => (
{feat}
))}
)}

{resolveLocalised(app.creditsNote, locale, 'Credits and purchases are specific to this app.')}

Get App & 50 Bonus Credits
))}
); }