PaymentsTable.tsx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { payments } from '@/config/tabler';
  2. import { uiCdnUrl } from '@/config/site';
  3. export default function PaymentsTable() {
  4. return (
  5. <table className="table">
  6. <tbody>
  7. {payments.map((payment) => (
  8. <tr key={payment.logo}>
  9. <td>
  10. <img
  11. src={`${uiCdnUrl}/dist/img/payments/${payment.logo}.svg`}
  12. height="40"
  13. alt={payment.name}
  14. className="rounded border"
  15. />
  16. </td>
  17. <td className="d-none lg:d-table-cell">
  18. <img
  19. src={`${uiCdnUrl}/dist/img/payments/${payment.logo}-dark.svg`}
  20. height="40"
  21. alt={payment.name}
  22. className="rounded border"
  23. />
  24. </td>
  25. <td className="d-none lg:d-table-cell">{payment.name}</td>
  26. <td>
  27. <code>{payment.logo}</code>
  28. </td>
  29. <td className="d-none lg:d-table-cell">
  30. <code>.payment-provider-{payment.logo}</code>
  31. </td>
  32. </tr>
  33. ))}
  34. </tbody>
  35. </table>
  36. );
  37. }