MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / DividerSet

Function DividerSet

packages/web/src/app/components/dividerSet.tsx:4–13  ·  view source on GitHub ↗
({ elements }: { elements: React.ReactNode[] })

Source from the content-addressed store, hash-verified

2import { TextSeparator } from "./textSeparator";
3
4export const DividerSet = ({ elements }: { elements: React.ReactNode[] }) => {
5 return elements.map((child, index) => {
6 return (
7 <Fragment key={index}>
8 {child}
9 {index < elements.length - 1 && <TextSeparator key={`divider-${index}`} />}
10 </Fragment>
11 );
12 });
13};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected