mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-29 12:10:24 +00:00
Initial commit of eigent-main
This commit is contained in:
commit
723df5a03e
1144 changed files with 103478 additions and 0 deletions
21
package/@stackframe/react/dist/esm/components/message-cards/message-card.js
vendored
Normal file
21
package/@stackframe/react/dist/esm/components/message-cards/message-card.js
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
"use client";
|
||||
"use client";
|
||||
|
||||
// src/components/message-cards/message-card.tsx
|
||||
import { MaybeFullPage } from "../elements/maybe-full-page";
|
||||
import { Button, Typography } from "@stackframe/stack-ui";
|
||||
import { jsx, jsxs } from "react/jsx-runtime";
|
||||
function MessageCard({ fullPage = false, ...props }) {
|
||||
return /* @__PURE__ */ jsx(MaybeFullPage, { fullPage, children: /* @__PURE__ */ jsxs("div", { className: "text-center stack-scope flex flex-col gap-4", style: { maxWidth: "380px", flexBasis: "380px", padding: fullPage ? "1rem" : 0 }, children: [
|
||||
/* @__PURE__ */ jsx(Typography, { type: "h3", children: props.title }),
|
||||
props.children,
|
||||
(props.primaryButtonText || props.secondaryButtonText) && /* @__PURE__ */ jsxs("div", { className: "flex justify-center gap-4 my-5", children: [
|
||||
props.secondaryButtonText && /* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: props.secondaryAction, children: props.secondaryButtonText }),
|
||||
props.primaryButtonText && /* @__PURE__ */ jsx(Button, { onClick: props.primaryAction, children: props.primaryButtonText })
|
||||
] })
|
||||
] }) });
|
||||
}
|
||||
export {
|
||||
MessageCard
|
||||
};
|
||||
//# sourceMappingURL=message-card.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue