UNPKG

alinea

Version:

[![npm](https://img.shields.io/npm/v/alinea.svg)](https://npmjs.org/package/alinea) [![install size](https://packagephobia.com/badge?p=alinea)](https://packagephobia.com/result?p=alinea)

21 lines (19 loc) 647 B
import "../chunks/chunk-U5RRZUYZ.js"; // src/ui/ErrorMessage.tsx import { IcRoundWarning } from "./icons/IcRoundWarning.js"; import { HStack } from "./Stack.js"; import { Typo } from "./Typo.js"; import { px } from "./util/Units.js"; import { jsx, jsxs } from "react/jsx-runtime"; function ErrorMessage({ error }) { return /* @__PURE__ */ jsxs(HStack, { center: true, gap: 10, style: { padding: px(25), width: "100%" }, children: [ /* @__PURE__ */ jsx(IcRoundWarning, { style: { fontSize: px(20) } }), /* @__PURE__ */ jsxs(Typo.Monospace, { children: [ "Error: ", error.message ] }) ] }); } export { ErrorMessage };