import { Stear, SWindow, _, s } from "../stear/main.js"; import apps from "./apps"; import settings from "./settings"; import splash from "./splash"; const call = async (stear, { find, resolve, close, render, call, include, event }, args) => { /*event.onloaded = () => { }*/ /*event.onresolve = async () => { }*/ /*event.onclose = async () => { }*/ /*event.onBeforRerender = async () => { }*/ /*event.onAfterRerender = async () => { }*/ let menu = [ include(splash), include(apps), include(settings), ]; window.dddd = menu[0]; let show = 0; return
{() => { menu[show].opts.render(); return menu[show].render({ style: { height: "100%", width: "100%" } }); }}
{() => menu.map((m, i) => { return
{ show = i; render(); } }} style={{ height: "1rem", width: "1rem", backgroundColor: show == i ? "red" : "green" }}>
; })}
; } export default new SWindow({ call, backgroundColor: "#dde" });