import type { AppContext } from "../api" ; import { eventLink } from "./event-link" ; export function button ( ctx , event , label , disabled = false ) { return disabled ? [ "span" , ctx . ui . buttonDisabled , label ] : [ eventLink , ctx . ui . button , event , label ] ; }