completionId: cgen-7bdf7c55ebd54f3481949f0896fe86d5

cgen-7bdf7c55ebd54f3481949f0896fe86d5
This commit is contained in:
Builder.io 2025-11-13 05:55:04 +00:00
parent d962b7fa03
commit 0a6d6c5cd2

View file

@ -46,15 +46,22 @@ export function useArmToast() {
}, },
/** /**
* Show a warning toast with the current arm's accent color * Show a warning toast with the current arm's accent color
*/ */
warning: (options: ArmToastOptions) => { warning: (options: ArmToastOptions) => {
return aethexToast.arm({ return aethexToast.arm({
title: options.title || "Warning", title: options.title || "Warning",
description: options.description, description: options.description,
duration: options.duration || 5000, duration: options.duration || 5000,
accentColor: theme.accentHex, accentColor: theme.accentHex,
}); });
}, },
};
/**
* Show an AeThex OS system toast with the current arm's accent color
*/
system: (message: string) => {
return aethexToast.system(message, theme.accentHex);
},
};
} }