import * as React from "react" import { cva, type VariantProps } from "class-variance-authority" import { cn } from "../../design-lib/utils" import { Icons } from "../organisms/icons" const noteVariants = cva( "relative flex items-center space-x-2 overflow-hidden rounded-md border px-4 py-3", { variants: { variant: { error: "border-error-light text-error", info: "border-secondary text-gray-11 [&>svg]:text-muted-foreground", success: "border-success-light text-success", warning: "border-warning-light text-warning", }, }, defaultVariants: { variant: "info", }, } ) const Note = React.forwardRef< HTMLDivElement, React.HTMLAttributes & VariantProps & { fill?: boolean unStyled?: boolean icon?: React.ReactNode } >( ( { className, variant = "info", fill, title, unStyled, icon, ...props }, ref ) => (
{title ? (

{title}

) : icon ? ( icon ) : variant === "error" ? ( ) : variant === "info" ? ( ) : variant === "success" ? ( ) : variant === "warning" ? ( ) : ( )}
{props.children}
) ) Note.displayName = "Alert" const NoteAction = React.forwardRef< HTMLDivElement, React.HTMLAttributes >(({ className, ...props }, ref) => (
)) NoteAction.displayName = "NoteAction" const NoteMessage = React.forwardRef< HTMLParagraphElement, React.HTMLAttributes >(({ className, ...props }, ref) => (
)) NoteMessage.displayName = "AlertMessage" export { Note, NoteAction, NoteMessage }