EditWaypoint.res.mjs
1// Generated by ReScript, PLEASE EDIT WITH CARE
2
3import * as State from "../State.res.mjs";
4import * as Content from "./Content.res.mjs";
5import * as Core__Option from "@rescript/core/lib/es6/src/Core__Option.res.mjs";
6import * as JsxRuntime from "preact/jsx-runtime";
7
8function EditWaypoint(props) {
9 let attrs = props.attrs;
10 let docID = props.docID;
11 State.docs.get(docID);
12 let editor = State.Editor.get(docID);
13 console.log("waypoints", props.waypoints);
14 return JsxRuntime.jsxs("div", {
15 children: [
16 JsxRuntime.jsx(Content.CloseButton.make, {
17 onClose: () => {
18 setTimeout(() => {
19 Core__Option.map(editor, ed => {
20 ed.commands.blur();
21 });
22 }, 100);
23 }
24 }),
25 JsxRuntime.jsx("h2", {
26 children: attrs.label
27 }),
28 JsxRuntime.jsxs("div", {
29 children: [
30 JsxRuntime.jsx("div", {
31 children: `Yearly weather averages for ` + attrs.label + `. Coming soon!`
32 }),
33 JsxRuntime.jsx("div", {})
34 ],
35 className: "w-full h-20 bg-blue-100 text-center flex flex-col items-center justify-center"
36 })
37 ],
38 className: "flex flex-col"
39 });
40}
41
42let make = EditWaypoint;
43
44export {
45 make,
46}
47/* State Not a pure module */