MCPcopy Create free account
hub / github.com/anus-dev/ANUS / addToWrappingPart

Function addToWrappingPart

packages/cli/src/ui/components/shared/MaxSizedBox.tsx:539–548  ·  view source on GitHub ↗
(text: string, props: Record<string, unknown>)

Source from the content-addressed store, hash-verified

537 }
538
539 function addToWrappingPart(text: string, props: Record<string, unknown>) {
540 if (
541 wrappingPart.length > 0 &&
542 wrappingPart[wrappingPart.length - 1].props === props
543 ) {
544 wrappingPart[wrappingPart.length - 1].text += text;
545 } else {
546 wrappingPart.push({ text, props });
547 }
548 }
549
550 row.segments.forEach((segment) => {
551 const linesFromSegment = segment.text.split('\n');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected