MCPcopy Create free account
hub / github.com/code-forge-io/react-router-devtools / getIcon

Function getIcon

docs/app/ui/alert.tsx:41–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 }
40
41 const getIcon = () => {
42 switch (variant) {
43 case "info":
44 return <Icon name="Info" className="size-6" />
45 case "warning":
46 return <Icon name="TriangleAlert" className="size-6" />
47 default:
48 return null
49 }
50 }
51
52 const styles = getVariantStyles()
53 const defaultTitle = variant === "info" ? t("titles.good_to_know") : t("titles.warning")

Callers 1

AlertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…