MCPcopy Create free account
hub / github.com/arctic-cli/interface / UserMessageDisplay

Function UserMessageDisplay

packages/ui/src/components/message-part.tsx:76–84  ·  view source on GitHub ↗
(props: { message: UserMessage; parts: PartType[] })

Source from the content-addressed store, hash-verified

74}
75
76export function UserMessageDisplay(props: { message: UserMessage; parts: PartType[] }) {
77 const text = createMemo(() =>
78 props.parts
79 ?.filter((p) => p.type === "text" && !(p as TextPart).synthetic)
80 ?.map((p) => (p as TextPart).text)
81 ?.join(""),
82 )
83 return <div data-component="user-message">{text()}</div>
84}
85
86export function Part(props: MessagePartProps) {
87 const component = createMemo(() => PART_MAPPING[props.part.type])

Callers

nothing calls this directly

Calls 1

textFunction · 0.85

Tested by

no test coverage detected