import React, {forwardRef, useMemo} from "react"; import {useAlert} from "@nextui-org/react"; export const InfoCircleIcon = (props) => { return ( ); }; export const CloseIcon = (props) => { return ( ); }; const styles = { base: [ "bg-slate-100", "border", "shadow", "hover:bg-slate-200", "focus-within:!bg-slate-100", "dark:bg-slate-900", "dark:hover:bg-slate-800", "dark:border-slate-800", "dark:focus-within:!bg-slate-900", "cursor-pointer", ], title: ["text-base", "text-slate-500", "font-bold"], description: ["text-base", "text-slate-500"], }; const MyAlert = forwardRef((props, ref) => { const { title, description, isClosable, domRef, handleClose, getBaseProps, getMainWrapperProps, getDescriptionProps, getTitleProps, getCloseButtonProps, color, isVisible, onClose, getAlertIconProps, } = useAlert({ ...props, ref, // this is just for the example, the props bellow should be passed by the parent component title: "Email Sent!!", description: "You will get a reply soon", // custom styles classNames: { ...styles, }, }); const mainWrapper = useMemo(() => { return (