import { cn } from "@reactive-resume/utils"; import { type VariantProps } from "class-variance-authority"; import { forwardRef } from "react"; import { alertVariants } from "../variants/alert"; type AlertProps = React.HTMLAttributes & VariantProps; export const Alert = forwardRef( ({ className, variant, ...props }, ref) => (
), ); Alert.displayName = "Alert"; export const AlertTitle = forwardRef< HTMLParagraphElement, React.HTMLAttributes >(({ className, children, ...props }, ref) => (
{children}
)); AlertTitle.displayName = "AlertTitle"; export const AlertDescription = forwardRef< HTMLParagraphElement, React.HTMLAttributes >(({ className, ...props }, ref) => (
)); AlertDescription.displayName = "AlertDescription";