/components/toast/toast

import { toast } from "@hedia/hexui/components/toast";
import { gingerbreadOutlineIcon } from "@hedia/iconly/outline";

export default {
  ErrorToast,
  InfoToast,
  SuccessToast,
  OverrideIconToast,
};

export function InfoToast() {
  return toast({ kind: "info" }, "Here is some information");
}

export function ErrorToast() {
  return toast({ kind: "error" }, "Something went wrong");
}

export function SuccessToast() {
  return toast({ kind: "success" }, "Great success!");
}

export function OverrideIconToast() {
  return toast({ kind: "success", icon: gingerbreadOutlineIcon() }, "Oy vey!");
}