completionId: cgen-7bdf7c55ebd54f3481949f0896fe86d5
cgen-7bdf7c55ebd54f3481949f0896fe86d5
This commit is contained in:
parent
d962b7fa03
commit
0a6d6c5cd2
1 changed files with 18 additions and 11 deletions
|
|
@ -46,15 +46,22 @@ export function useArmToast() {
|
|||
},
|
||||
|
||||
/**
|
||||
* Show a warning toast with the current arm's accent color
|
||||
*/
|
||||
warning: (options: ArmToastOptions) => {
|
||||
return aethexToast.arm({
|
||||
title: options.title || "Warning",
|
||||
description: options.description,
|
||||
duration: options.duration || 5000,
|
||||
accentColor: theme.accentHex,
|
||||
});
|
||||
},
|
||||
};
|
||||
* Show a warning toast with the current arm's accent color
|
||||
*/
|
||||
warning: (options: ArmToastOptions) => {
|
||||
return aethexToast.arm({
|
||||
title: options.title || "Warning",
|
||||
description: options.description,
|
||||
duration: options.duration || 5000,
|
||||
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);
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue