import { Component, Show } from "solid-js"; import { Anchor } from "../../Anchor"; export const FieldPubMed: Component<{ value: number[] }> = (props) => { const href = () => { const ids = props.value; if (ids) { const term = ids.map((id) => `${id}[UID]`).join("+OR+"); return `https://pubmed.ncbi.nlm.nih.gov/?term=${term}&sort=pubdate`; } }; return ( 0}> {`citations (${props.value.length})`} ); };