import type { ReactNode } from "react";

export enum NotificationType {
  info = "info",
  error = "error",
}

export type Action = {
  label?: ReactNode;
  onClick?: () => void;
};

export type Notification = {
  type: NotificationType;
  title?: ReactNode;
  desc?: ReactNode;
  actions?: Array<Action>;
  onClose?: () => void;
};
