@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
35 lines (34 loc) • 1 kB
JavaScript
"use client";
import Snippet from "../../Snippet/Snippet.mjs";
import { styles } from "./style.mjs";
import { memo } from "react";
import { jsx, jsxs } from "react/jsx-runtime";
import { cx } from "antd-style";
//#region src/awesome/InstallBanner/InstallBanner.tsx
const InstallBanner = memo(({ className, command, footnote, prefix = "$", title, ...rest }) => /* @__PURE__ */ jsx("section", {
className: cx(styles.root, className),
...rest,
children: /* @__PURE__ */ jsxs("div", {
className: styles.content,
children: [
title && /* @__PURE__ */ jsx("h2", {
className: styles.title,
children: title
}),
/* @__PURE__ */ jsx(Snippet, {
className: styles.snippet,
language: "bash",
prefix,
children: command
}),
footnote && /* @__PURE__ */ jsx("p", {
className: styles.footnote,
children: footnote
})
]
})
}));
InstallBanner.displayName = "InstallBanner";
//#endregion
export { InstallBanner as default };
//# sourceMappingURL=InstallBanner.mjs.map