MCPcopy Create free account
hub / github.com/bytebase/bytebase / EngineIcon

Function EngineIcon

frontend/src/react/components/EngineIcon.tsx:10–29  ·  view source on GitHub ↗
({
  engine,
  alt = "",
  className,
  ...props
}: EngineIconProps)

Source from the content-addressed store, hash-verified

8};
9
10export function EngineIcon({
11 engine,
12 alt = "",
13 className,
14 ...props
15}: EngineIconProps) {
16 const src = getEngineIconSrc(engine);
17 if (!src) {
18 return null;
19 }
20
21 return (
22 <img
23 src={src}
24 alt={alt}
25 className={cn("shrink-0 object-contain", className)}
26 {...props}
27 />
28 );
29}
30
31export function getEngineIconSrc(engine: Engine) {
32 return EngineIconPath[engine];

Callers

nothing calls this directly

Calls 2

cnFunction · 0.90
getEngineIconSrcFunction · 0.85

Tested by

no test coverage detected