/apps/dexcom/disconnecting

import { button } from "@hedia/hexui/components/button";
import { footer } from "@hedia/hexui/components/footer";
import { header } from "@hedia/hexui/components/header";
import { navbar } from "@hedia/hexui/components/navbar";
import { content, prose } from "@hedia/hexui/components/prose";
import { screen } from "@hedia/hexui/components/screen";
import { a, h1, h2, img, p } from "@hedia/html/elements";

export default {
  disconnectScreen,
};

export function disconnectScreen() {
  return screen(
    header(navbar(a({ href: "#" }, "Close"), h2("CGM"))),
    content(
      img({ src: "/apps/dexcom/dexcom-logo.png", width: "123", height: "41" }),
      prose(
        h1("Your Dexcom Account"),
        p("Your Dexcom account is connected with Hedia Diabetes Assistant."),
        p("Data from your CGM sensor is delivered to Hedia Diabetes Assistant with a 3-hour delay."),
        p("Hedia Diabetes Assistant does NOT give alarms related to high- or low glucose."),
      ),
    ),
    footer(button({ kind: "danger" }, "Disconnect Dexcom® account")),
  );
}