import { cva, type VariantProps } from "class-variance-authority"
import * as React from "react"
import { cn } from "@/lib/utils"
const alertVariants = cva(
"relative w-full rounded-base shadow-shadow font-heading border-2 border-border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-mtext",
default: "bg-main text-mtext",
destructive: "bg-black text-white",
const Alert = React.forwardRef<
React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>
>(({ className, variant, ...props }, ref) => (
className={cn(alertVariants({ variant }), className)}
Alert.displayName = "Alert"
const AlertTitle = React.forwardRef<
React.HTMLAttributes<HTMLHeadingElement>
>(({ className, ...props }, ref) => (
className={cn("mb-1 leading-none tracking-tight", className)}
AlertTitle.displayName = "AlertTitle"
const AlertDescription = React.forwardRef<
React.HTMLAttributes<HTMLParagraphElement>
>(({ className, ...props }, ref) => (
className={cn("text-sm font-base [&_p]:leading-relaxed", className)}
AlertDescription.displayName = "AlertDescription"
export { Alert, AlertTitle, AlertDescription }