import { CheckCircleIcon, ExclamationIcon, InformationCircleIcon, XCircleIcon } from "@heroicons/react/solid"; import classNames from "classnames"; import type { ReactNode } from "react"; import { FiInfo } from "../icon"; export interface AlertProps { title?: ReactNode; // @TODO: Message should be children, more flexible? message?: ReactNode; // @TODO: Provide action buttons so style is always the same. actions?: ReactNode; className?: string; iconClassName?: string; // @TODO: Success and info shouldn't exist as per design? severity: "success" | "warning" | "error" | "info" | "neutral"; } export function Alert(props: AlertProps) { const { severity, iconClassName } = props; return (