mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-26 01:37:19 +00:00
- ModuleManager: Central tracking for installed marketplace modules - DataAnalyzerWidget: Real-time CPU/RAM/Battery/Storage widget (unlocked by Data Analyzer module) - BottomNavBar: Navigation bar for Projects/Chat/Marketplace/Settings - RootShell: Real root command execution utility - TerminalActivity: Full root shell with neofetch, sysinfo, real Linux commands - Terminal Pro module: Adds aliases (ll, la, h), command history - ArcadeActivity + SnakeGame: Pixel Arcade module unlocks retro games - fade_in/fade_out animations for smooth transitions
67 lines
1.6 KiB
TypeScript
67 lines
1.6 KiB
TypeScript
import { useArmTheme } from "@/contexts/ArmThemeContext";
|
|
import { aethexToast } from "@/lib/aethex-toast";
|
|
|
|
interface ArmToastOptions {
|
|
title?: string;
|
|
description?: string;
|
|
duration?: number;
|
|
}
|
|
|
|
export function useArmToast() {
|
|
const { theme } = useArmTheme();
|
|
|
|
return {
|
|
/**
|
|
* Show a toast with the current arm's accent color
|
|
*/
|
|
show: (options: ArmToastOptions) => {
|
|
return aethexToast.arm({
|
|
...options,
|
|
accentColor: theme.accentHex,
|
|
});
|
|
},
|
|
|
|
/**
|
|
* Show a success toast with the current arm's accent color
|
|
*/
|
|
success: (options: ArmToastOptions) => {
|
|
return aethexToast.arm({
|
|
title: options.title || "Success",
|
|
description: options.description,
|
|
duration: options.duration || 5000,
|
|
accentColor: theme.accentHex,
|
|
});
|
|
},
|
|
|
|
/**
|
|
* Show an error toast with the current arm's accent color
|
|
*/
|
|
error: (options: ArmToastOptions) => {
|
|
return aethexToast.arm({
|
|
title: options.title || "Error",
|
|
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);
|
|
},
|
|
};
|
|
}
|