MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / Warn

Function Warn

apps/baseai.dev/src/components/mdx/Warn.tsx:3–34  ·  view source on GitHub ↗
({
	top,
	title,
	children
}: {
	top: boolean;
	title: string;
	children: React.ReactNode;
})

Source from the content-addressed store, hash-verified

1import { IconWarn } from '../ui/icons/warn';
2
3export function Warn({
4 top,
5 title,
6 children
7}: {
8 top: boolean;
9 title: string;
10 children: React.ReactNode;
11}) {
12 return (
13 <div className="light:ring-ring:ring-border relative my-7 rounded-lg py-3.5 pl-[1.625rem] pr-4 ring-1 ring-inset ring-ring/10 [--callout-border:theme(colors.yellow.600)] [--callout-icon:theme(colors.yellow.600)] [--callout-title:theme(colors.yellow.600)] dark:[--callout-border:theme(colors.yellow.500)] dark:[--callout-icon:theme(colors.yellow.600)] dark:[--callout-title:theme(colors.yellow.600)] [&>*]:my-0 [&>*]:py-0">
14 <div className="absolute inset-y-2 left-2 flex w-0.5 gap-4 rounded-full bg-[--callout-border]"></div>
15 <div className="mb-2 mt-0 flex items-center justify-start gap-1">
16 <IconWarn className="h-4 w-4 text-yellow-600" />
17 <span className="text-xs font-bold text-[--callout-title]">
18 Warning
19 </span>
20 </div>
21
22 <div className="mt-2 [&>a]:text-yellow-600">
23 {title && (
24 <h4 className="mt-4 flex items-center justify-start gap-4 font-bold text-foreground">
25 <strong>{title}</strong>
26 </h4>
27 )}
28 <div className="mt-0 flex flex-col gap-4 [&>p]:my-0 [&>p]:py-0">
29 {children}
30 </div>
31 </div>
32 </div>
33 );
34}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected