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

Function Alert

apps/web/ui/Alert/index.tsx:24–37  ·  view source on GitHub ↗
({ className, type, children }: Props)

Source from the content-addressed store, hash-verified

22}
23
24export default function Alert({ className, type, children }: Props) {
25 return (
26 <div
27 className={classNames(styles.alert, className, {
28 [styles.danger]: type === 'danger',
29 [styles.info]: type === 'info',
30 })}
31 role="alert"
32 >
33 {icon(type)}
34 <span>{children}</span>
35 </div>
36 );
37}

Callers

nothing calls this directly

Calls 1

iconFunction · 0.70

Tested by

no test coverage detected