Variable prepareStatusContentConst
prepareStatusContent: (
content: Record<string, unknown>,
options?: { autoStyle?: boolean; random?: () => number },
) => {
content: Record<string, unknown>;
styleOptions: {
backgroundColor?: string;
font?: number;
ptt?: boolean;
textColor?: string;
};
}
Type Declaration
-
- (
content: Record<string, unknown>,
options?: { autoStyle?: boolean; random?: () => number },
): {
content: Record<string, unknown>;
styleOptions: {
backgroundColor?: string;
font?: number;
ptt?: boolean;
textColor?: string;
};
}
-
Parameters
- content: Record<string, unknown>
Optionaloptions: { autoStyle?: boolean; random?: () => number }
Returns {
content: Record<string, unknown>;
styleOptions: {
backgroundColor?: string;
font?: number;
ptt?: boolean;
textColor?: string;
};
}
Normalize status content and derive style options: text → random font/colors (unless provided); image/video → text becomes caption, style fields dropped; audio → ptt defaults true, bg kept.