"use client"; /* * Documentation: * Alert — https://app.subframe.com/f023064a5ca0/library?component=Alert_3a65613d-d546-467c-80f4-aaba6a7edcd5 * Icon Button — https://app.subframe.com/f023064a5ca0/library?component=Icon+Button_af9405b1-8c54-4e01-9786-5aad308224f6 */ import React from "react"; import { FeatherAlertCircle } from "@subframe/core"; import { FeatherAlertTriangle } from "@subframe/core"; import { FeatherCheckCircle } from "@subframe/core"; import { FeatherInbox } from "@subframe/core"; import { FeatherInfo } from "@subframe/core"; import { FeatherX } from "@subframe/core"; import * as SubframeUtils from "../../utils"; import { IconButton } from "../IconButton"; export interface AlertRootProps extends Omit, "title"> { variant?: "information" | "success" | "warning" | "error" | "neutral"; notDismissible?: boolean; title?: React.ReactNode; description?: React.ReactNode; textSize?: "small" | "medium"; className?: string; } const AlertRoot = React.forwardRef( function AlertRoot( { variant = "information", notDismissible = false, title, description, textSize = "medium", className, ...otherProps }: AlertRootProps, ref ) { return (
{title ? ( {title} ) : null} {description ? ( {description} ) : null}
} />
); } ); export const Alert = AlertRoot;