import { $, html } from "sigpro"; $.component( "c-dialog", (props, { slot, emit }) => { return html` `modal ${props.open() ? "modal-open" : ""}`} .open=${props.open} @close=${(e) => { if (typeof props.open === "function") props.open(false); emit("close", e); }}> ${slot()} props.open(false)}> ${slot("buttons")} ${() => !slot("buttons").length ? html` Cerrar ` : ""} props.open(false)}> close `; }, ["open"], );