import { showToast, Toast } from "@raycast/api";
import { setTimeout } from "timers/promises";
export default async () => {
const toast = await showToast({ style: Toast.Style.Animated, title: "Uploading image" });
await setTimeout(1000);
toast.style = Toast.Style.Success;
toast.title = "Uploaded image";
};
Show a toast notification on the bottom left of the Vicinae window, briefly replacing the navigation title. Toast can have different style depending on the nature of the notification, and can even use
Toast.Style.Animatedto display a loading spinner and refresh the title in realtime.