Files
component-party/content/4-component-composition/2-emit-to-parent/mithril/AnswerButton.js
2025-09-21 23:13:53 +02:00

10 lines
223 B
JavaScript

import m from "mithril";
export const AnswerButton = ({ attrs: { onYes, onNo } }) => ({
view: () =>
m(
"div",
m("button", { onclick: onYes }, "YES"),
m("button", { onclick: onNo }, "NO"),
),
});