Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 4x 4x 2x 6x 4x 8x 16x | import { AlertCircle } from "lucide-react";
import type { ReactNode } from "react";
import { cn } from "@/lib/utils";
type EconomicsWarningNoticeProps = {
"aria-label": string;
children: ReactNode;
className?: string;
};
export function EconomicsWarningNotice({
"aria-label": ariaLabel,
children,
className,
}: EconomicsWarningNoticeProps) {
return (
<div
className={cn(
"rounded-md border border-amber-500/25 bg-amber-500/10 px-2 py-1.5 text-sm leading-snug text-amber-700 dark:text-amber-300",
className,
)}
role="status"
aria-label={ariaLabel}
>
<div className="flex items-center gap-1.5 text-sm">
<AlertCircle className="size-3.5 shrink-0" />
<div className="min-w-0 space-y-1 text-sm">{children}</div>
</div>
</div>
);
}
|