MCPcopy Create free account
hub / github.com/enowdev/enowX-Coder / TimelineEvent

Function TimelineEvent

src/components/chat/TimelineEvent.tsx:12–30  ·  view source on GitHub ↗
({
  icon,
  showConnector,
  children,
  className,
  contentClassName,
})

Source from the content-addressed store, hash-verified

10}
11
12export const TimelineEvent: React.FC<TimelineEventProps> = ({
13 icon,
14 showConnector,
15 children,
16 className,
17 contentClassName,
18}) => {
19 return (
20 <div className={cn('grid grid-cols-[20px_1fr] gap-3', className)}>
21 <div className="relative flex justify-center">
22 <div className="mt-1 z-10">{icon}</div>
23 {showConnector && (
24 <div className="absolute top-5 bottom-0 w-px bg-[var(--border)]/70" />
25 )}
26 </div>
27 <div className={cn('min-w-0', contentClassName)}>{children}</div>
28 </div>
29 );
30};

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected