MCPcopy Index your code
hub / github.com/simstudioai/sim / getTriggerIcon

Function getTriggerIcon

apps/sim/app/workspace/[workspaceId]/logs/logs.tsx:185–197  ·  view source on GitHub ↗
(
  triggerType: string
)

Source from the content-addressed store, hash-verified

183}
184
185function getTriggerIcon(
186 triggerType: string
187): React.ComponentType<{ className?: string }> | undefined {
188 if ((CORE_TRIGGER_TYPES as readonly string[]).includes(triggerType)) return undefined
189 const block = getBlock(triggerType)
190 if (!block?.icon) return undefined
191 const BlockIcon = block.icon
192 const TriggerIcon = ({ className }: { className?: string }) => (
193 <BlockIcon className={cn(className, 'flex-shrink-0')} style={{ width: 12, height: 12 }} />
194 )
195 TriggerIcon.displayName = `TriggerIcon(${triggerType})`
196 return TriggerIcon
197}
198
199function SpinningRefreshCw(props: React.SVGProps<SVGSVGElement>) {
200 return <RefreshCw {...props} animate />

Callers 1

LogsFilterPanelFunction · 0.85

Calls 1

getBlockFunction · 0.90

Tested by

no test coverage detected