mirror of
https://github.com/lainbo/component-party.git
synced 2026-04-05 04:59:02 +08:00
10 lines
223 B
JavaScript
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"),
|
|
),
|
|
});
|