MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / icon

Function icon

apps/web/ui/Alert/index.tsx:15–22  ·  view source on GitHub ↗
(type: AlertType)

Source from the content-addressed store, hash-verified

13}
14
15function icon(type: AlertType) {
16 switch (type) {
17 case 'danger':
18 return <FiAlertTriangle className={styles.icon} />;
19 case 'info':
20 return <FiInfo className={styles.icon} />;
21 }
22}
23
24export default function Alert({ className, type, children }: Props) {
25 return (

Callers 1

AlertFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected