| 13 | // Everything the app needs to work |
| 14 | |
| 15 | export interface UseLinuxInitReturn { |
| 16 | selectedDistro: DistroId; |
| 17 | selectedApps: Set<string>; |
| 18 | setSelectedDistro: (distroId: DistroId) => void; |
| 19 | toggleApp: (appId: string) => void; |
| 20 | selectAll: () => void; |
| 21 | clearAll: () => void; |
| 22 | isAppAvailable: (appId: string) => boolean; |
| 23 | getPackageName: (appId: string) => string | null; |
| 24 | generatedCommand: string; |
| 25 | selectedCount: number; |
| 26 | availableCount: number; |
| 27 | // Arch/AUR specific |
| 28 | hasYayInstalled: boolean; |
| 29 | setHasYayInstalled: (value: boolean) => void; |
| 30 | selectedHelper: 'yay' | 'paru'; |
| 31 | setSelectedHelper: (helper: 'yay' | 'paru') => void; |
| 32 | hasAurPackages: boolean; |
| 33 | aurPackageNames: string[]; |
| 34 | aurAppNames: string[]; |
| 35 | // Hydration state |
| 36 | isHydrated: boolean; |
| 37 | } |
| 38 | |
| 39 | const STORAGE_KEY_DISTRO = 'linuxinit_distro'; |
| 40 | const STORAGE_KEY_APPS = 'linuxinit_apps'; |
nothing calls this directly
no outgoing calls
no test coverage detected