"use client"; import { ArrowUpRight, Award, Check, CircleHelp } from "lucide-react"; export default function BoardCard({ board }) { const mainFields = ["Nome", "Link", "Imagem", "Loja Oficial"]; const technicalFields = Object.keys(board).filter((key) => !mainFields.includes(key) && board[key]); const valor = (campo) => board[campo]?.toString().toLowerCase().trim(); const recursos = technicalFields.filter((campo) => ["sim", "opcional"].includes(valor(campo))); const lojaOficial = valor("Loja Oficial") === "sim"; return (
{board.Imagem && (
)}
{lojaOficial && ( )}

{board.Nome || "Placa genérica"}

{recursos.length > 0 && (

Recursos embarcados

    {recursos.map((campo) => { const opcional = valor(campo) === "opcional"; return (
  • {opcional ? (
  • ); })}
)} {board.Link && ( Ver no AliExpress )}
); }