"use client"; import { motion } from "framer-motion"; import Loader from "../components/Loader"; import { useProducts } from "../services/products"; import { assetUrl } from "../services/api"; import type { ThemeProps } from "../types"; export const Showcase = ({ isNavyBg }: ThemeProps) => { const { data, isLoading } = useProducts(); const products = (data ?? []).filter((p) => p.isActive); const bg = isNavyBg ? "#080c14" : "#f0efec"; const text = isNavyBg ? "#ffffff" : "#0a0a0a"; const sub = isNavyBg ? "rgba(255,255,255,0.45)" : "#6a6866"; const border = isNavyBg ? "rgba(255,255,255,0.08)" : "rgba(0,0,0,0.08)"; const tagBg = isNavyBg ? "rgba(59,130,246,0.1)" : "rgba(59,130,246,0.07)"; return (
Nuestras soluciones

Software diseñado para tu operación.

Cada módulo resuelve un problema real. Sin funciones de relleno, sin licencias por usuario, sin límites artificiales.

{isLoading ? ( ) : products.length > 0 ? (
{products.map(({ id, imageUrl, name, description, badges }, i) => (
{imageUrl ? ( {name} ) : (
)}

{name}

{description}

{badges && badges.length > 0 && (
{badges.map((badge) => ( {badge} ))}
)}
))}
) : (

Sin productos registrados.

)}
); };