bigblocks
Version:
Complete Bitcoin UI component library - authentication, social, wallet, market, inscriptions, and blockchain interactions for React
10 lines (9 loc) • 647 B
JavaScript
"use client";
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { InfoCircledIcon } from "@radix-ui/react-icons";
import { cn } from "../../lib/utils.js";
import { Alert, AlertDescription } from "../ui/alert.js";
export function WarningCard({ title = "Important", message, icon, className = "", }) {
const defaultIcon = _jsx(InfoCircledIcon, { className: "h-4 w-4" });
return (_jsxs(Alert, { className: cn("bg-amber-50 border-amber-200", className), children: [icon || defaultIcon, _jsxs(AlertDescription, { className: "text-amber-900", children: [_jsxs("strong", { children: [title, ":"] }), " ", message] })] }));
}