import { TranslatedString } from "@gnu-taler/taler-util"; import { ComponentChildren, Fragment, VNode, h } from "preact"; import { assertUnreachable } from "./Routing.js"; interface Props { type?: "info" | "success" | "warning" | "danger", onClose?: () => void, title: TranslatedString, children?: ComponentChildren , } export function Attention({ type = "info", title, children, onClose }: Props): VNode { return