UNPKG

@benev/nubs

Version:
20 lines (17 loc) 510 B
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