/* Copyright (C) 2023-2026 QuantumNous This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . For commercial licensing, please contact support@quantumnous.com */ import { cva, type VariantProps } from 'class-variance-authority' import * as React from 'react' import { cn } from '@/lib/utils' const alertVariants = cva( "group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4", { variants: { variant: { default: 'bg-card text-card-foreground', destructive: 'bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current', }, }, defaultVariants: { variant: 'default', }, } ) function Alert({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps) { return (
) } function AlertTitle({ className, ...props }: React.ComponentProps<'div'>) { return (
svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3', className )} {...props} /> ) } function AlertDescription({ className, ...props }: React.ComponentProps<'div'>) { return (
) } function AlertAction({ className, ...props }: React.ComponentProps<'div'>) { return (
) } export { Alert, AlertTitle, AlertDescription, AlertAction }