import {
Box,
CloseButton,
// Alert,
// AlertDescription,
// AlertIcon,
// AlertTitle,
// CloseButton,
notificationService,
} from "@hope-ui/solid"
import { JSXElement } from "solid-js"
import { alphaBgColor, firstUpperCase } from "."
const notify = {
render: (element: JSXElement) => {
notificationService.show({
render: (props) => {
return (
)
},
})
},
success: (message: string) => {
notificationService.show({
status: "success",
title: firstUpperCase(message),
// render: (props) => (
//
//
// {message}
//
//
// ),
})
},
error: (message: string) => {
notificationService.show({
status: "danger",
title: firstUpperCase(message),
// render: (props) => (
//
//
// {message}
//
//
// ),
})
},
info: (message: string) => {
notificationService.show({
status: "info",
title: firstUpperCase(message),
// render: (props) => (
//
//
// {message}
//
//
// ),
})
},
warning: (message: string) => {
notificationService.show({
status: "warning",
title: firstUpperCase(message),
// render: (props) => (
//
//
// {message}
//
//
// ),
})
},
}
export { notify }