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-light dark:shadow-dark font-bold border-2 border-border dark:border-darkBorder p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-black',
default: 'bg-main text-black',
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 }