UNPKG

@benev/construct

Version:
22 lines 697 B
import { html } from "@benev/slate"; import { styles } from "./styles.js"; import { slate } from "../../context/slate.js"; import { panel } from "../panel_parts.js"; import { icon_feather_settings } from "../../icons/groups/feather/settings.js"; export const SettingsPanel = panel({ label: "settings", icon: icon_feather_settings, view: slate.shadow_view(use => ({}) => { use.styles(styles); use.name("settings"); function reset_layout() { use.context.layout.reset_to_default(); } return html ` <button class=based @click=${reset_layout}> reset layout to default </button> `; }), }); //# sourceMappingURL=panel.js.map