mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 04:15:48 -06:00
22 lines
507 B
TypeScript
22 lines
507 B
TypeScript
// Line plugin module implements common behavior.
|
|
import type { FlexBox, FlexBubble, FlexText } from "./types.js";
|
|
|
|
export function attachFooterText(bubble: FlexBubble, footer: string) {
|
|
bubble.footer = {
|
|
type: "box",
|
|
layout: "vertical",
|
|
contents: [
|
|
{
|
|
type: "text",
|
|
text: footer,
|
|
size: "xs",
|
|
color: "#AAAAAA",
|
|
wrap: true,
|
|
align: "center",
|
|
} as FlexText,
|
|
],
|
|
paddingAll: "lg",
|
|
backgroundColor: "#FAFAFA",
|
|
} as FlexBox;
|
|
}
|