stear/example/settings.jsx

26 lines
779 B
React
Raw Normal View History

2022-10-09 16:36:35 +02:00
import prompt from "../stear/extra/Pages/prompt.js";
2022-11-02 14:45:56 +01:00
import { Stear, SWindow, _, s } from "../stear/main.js";
2022-10-09 16:36:35 +02:00
const call = async (stear, { find, resolve, close, render, call, event }, args) => {
/*event.onloaded = () => { }*/
/*event.onresolve = async () => { }*/
/*event.onclose = async () => { }*/
/*event.onBeforRerender = async () => { }*/
/*event.onAfterRerender = async () => { }*/
/*event.onParentRender = () => { }*/
event.onParentRender = () => call(prompt, { text: "settings" }).then(console.log);
2022-11-02 14:45:56 +01:00
return <div style={{
display:"flex",
alignItems: "center",
justifyContent: "center",
height: "100%",
}}>
Settings
</div>
2022-10-09 16:36:35 +02:00
}
export default new SWindow({ call, backgroundColor: "#dde" });