import type { Pool } from 'types/api/pools'; type PoolLink = { url: string; image: string; title: string; }; export default function getPoolLinks(pool?: Pool): Array { if (!pool) { return []; } return [ { url: pool.coin_gecko_terminal_url, image: '/static/gecko_terminal.png', title: 'GeckoTerminal', }, ].filter(link => Boolean(link.url)); }