import { Alert, AlertDescription, AlertIcon, AlertTitle, Box, CloseButton, } from "@chakra-ui/react"; import React from "react"; export interface INotificationProps { type: "warning" | "info" | "success" | "error"; heading: string; show: boolean; message?: string; onDismiss?: () => void; } export const Notification = ({ type, heading, show, message, onDismiss, }: INotificationProps) => ( {heading} {message && ( {message} )} );