import { SourceFacts } from "~/components" ; import { h , round } from "~/utilities" ; param facts returns export function renderSourceFacts ( facts ) { return ( < ul class = "md-source__facts" > { Object . entries ( facts ) . map ( ( [ key , value ] ) => ( < li class = { `md-source__fact md-source__fact--${ key }` } > { typeof value === "number" ? round ( value ) : value } < /li>))} < /ul>); }