28 lines
No EOL
811 B
JavaScript
28 lines
No EOL
811 B
JavaScript
import prompt from "../stear/extra/Pages/prompt.js";
|
|
import { Stear, SWindow, _ } from "../stear/main.js";
|
|
|
|
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);
|
|
|
|
|
|
return _({
|
|
style:{
|
|
display:"flex",
|
|
alignItems: "center",
|
|
justifyContent: "center",
|
|
height:"100%",
|
|
}
|
|
}, [
|
|
"Settings"
|
|
]);
|
|
}
|
|
|
|
export default new SWindow({ call, backgroundColor: "#dde" }); |