+ {children} +
+ ); +}; + +export { Text }; +export type { TextProps }; diff --git a/src/app/frames/components/transaction-result.tsx b/src/app/frames/components/transaction-result.tsx new file mode 100644 index 0000000..24419d9 --- /dev/null +++ b/src/app/frames/components/transaction-result.tsx @@ -0,0 +1,120 @@ +import React from "react"; + +import { cn } from "@/app/frames/lib/utils"; + +import { Container, ContainerProps } from "./container"; +import { Text, TextProps } from "./text"; + +interface TransactionResultProps extends ContainerProps { + type: "success" | "failed" | "error"; + title?: string; +} + +const SuccessIcon = () => ( + +); + +const FailedIcon = () => ( + +); + +const ErrorIcon = () => ( + +); + +interface TransactionResultProps extends ContainerProps { + type: "success" | "failed" | "error"; + title?: string; + titleProps?: TextProps; + childrenProps?: TextProps; +} + +const TransactionResult: React.FC+ {user.displayName && user.displayName?.length > MAX_DISPLAY_NAME_LENGTH + ? `${user.displayName.slice(0, 10)}...` + : user.displayName} +
+