import { configuration , translation } from "~/_" ; import { h } from "~/utilities" ; /**
 * Version
 */ export interface Version { version : string ; title : string ; aliases : string [ ] ; } param version returns function renderVersion ( version ) { const config = configuration ( ) ; const url = new URL ( `../${ version . version }/` , config . base ) ; return ( < li class = "md-version__item" > < a href = { url . toString ( ) } class = "md-version__link" > { version . title } < /a> < /li>); } param versions param active returns export function renderVersionSelector ( versions , active ) { return ( < div class = "md-version" > < button class = "md-version__current" aria - label = { translation ( "select.version.title" ) } > { active . title } < /button> < ul class = "md-version__list" > { versions . map ( renderVersion ) } < /ul> < /div>); }