BT  ·  2026-06-08

Content.res.mjs

 1// Generated by ReScript, PLEASE EDIT WITH CARE
 2
 3import * as State from "../State.res.mjs";
 4import * as LucidePreact from "lucide-preact";
 5import * as JsxRuntime from "preact/jsx-runtime";
 6
 7function Content$CloseButton(props) {
 8  let onClose = props.onClose;
 9  return JsxRuntime.jsx("div", {
10    children: JsxRuntime.jsx("button", {
11      children: JsxRuntime.jsx(LucidePreact.X, {}),
12      className: "cursor-pointer",
13      onClick: param => {
14        State.content.value = undefined;
15        if (onClose !== undefined) {
16          return onClose();
17        }
18      }
19    }),
20    className: "text-gray-600 self-end w-fit cursor-pointer",
21    title: "Close"
22  });
23}
24
25let CloseButton = {
26  make: Content$CloseButton
27};
28
29export {
30  CloseButton,
31}
32/* State Not a pure module */