Files
Igor StuevandGitHub 246447e6fd pools pages (#2468)
* pools pages

* fixes and changes

* revert demo config
2024-12-16 14:43:50 +01:00

22 lines
400 B
TypeScript

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