MCPcopy Create free account
hub / github.com/CommE2E/comm / DummyTextNode

Function DummyTextNode

native/chat/inner-text-message.react.js:54–76  ·  view source on GitHub ↗
(props: DummyTextNodeProps)

Source from the content-addressed store, hash-verified

52 +children: string,
53};
54function DummyTextNode(props: DummyTextNodeProps): React.Node {
55 const { children, style, withoutMarkdown, ...rest } = props;
56 const maxWidth = useComposedMessageMaxWidth();
57 const viewStyle = [props.style, styles.dummyMessage, { maxWidth }];
58 const rules = useTextMessageMarkdownRules(false);
59
60 let content;
61 if (withoutMarkdown) {
62 content = <Text style={styles.text}>{children}</Text>;
63 } else {
64 content = (
65 <Markdown style={styles.text} rules={rules}>
66 {children}
67 </Markdown>
68 );
69 }
70
71 return (
72 <View {...rest} style={viewStyle}>
73 {content}
74 </View>
75 );
76}
77
78type Props = {
79 +item: ChatTextMessageInfoItemWithHeight,

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected