@benev/nubs
Version:
user-input system for web games
20 lines (17 loc) • 510 B
JavaScript
import { html } from "lit";
import { view } from "@chasemoskal/magical";
export const MetabarView = view({}, use => (editingApproach, toggleApproach, restoreBindingsToDefaults) => {
return html `
<div class=metabar>
<button @click=${toggleApproach}>
${editingApproach === "gui"
? "switch to text editor"
: "switch to gui editor"}
</button>
<button @click=${restoreBindingsToDefaults}>
reset to defaults
</button>
</div>
`;
});
//# sourceMappingURL=metabar.js.map