import type { Event } from "@thi.ng/interceptors" ; import type { AppContext } from "../api" ; param ctx param event param attribs param body export function eventLink ( ctx , attribs , event , body ) { return [ "a" , { ... attribs , onclick : ( e ) => { e . preventDefault ( ) ; ctx . bus . dispatch ( event ) ; } , } , body , ] ; }