import { useEffect, useState } from "react"; import classNames from "classnames"; import { ThemeColor, useC, Text } from "../common"; import IconButton from "../button/IconButton"; import { alertService, AlertInfoWithId } from "./AlertService"; import "./alert.css"; interface AutoCloseAlertProps { color: ThemeColor; message: Text; onDismiss?: () => void; onIn?: () => void; onOut?: () => void; } function Alert({ color, message, onDismiss, onIn, onOut, }: AutoCloseAlertProps) { const c = useC(); return (