Parameters
- onLibraryUpdate: () => void
Returns {
keys: {
steamId: string;
steamApiKey: string;
rawgApiKey: string;
geminiApiKey: string;
};
setKeys: Dispatch<
SetStateAction<
{
steamId: string;
steamApiKey: string;
rawgApiKey: string;
geminiApiKey: string;
},
>,
>;
loading: {
initial: boolean;
saving: boolean;
importing: boolean;
enriching: boolean;
fetchingCovers: boolean;
exporting: boolean;
importingBackup: boolean;
authenticating: boolean;
loadingCacheStats: boolean;
cleaningCache: boolean;
clearingAllCache: boolean;
refreshingReviews: boolean;
refreshingWishlistPrices: boolean;
};
status: { type: "success"
| "error"
| null; message: string };
progress: { current: number; total: number; game: string } | null;
saveLocally: boolean;
toggleSaveLocally: (checked: boolean) => void;
handleClearCache: () => Promise<void>;
actions: {
saveKeys: () => Promise<void>;
importLibrary: () => Promise<void>;
enrichLibrary: () => Promise<void>;
fetchMissingCovers: () => Promise<void>;
exportDatabase: () => Promise<void>;
importDatabase: () => Promise<void>;
cleanupCache: () => Promise<void>;
clearAllCache: () => Promise<void>;
};
}
Objeto contendo estados, chaves e ações relacionadas às configurações
Hook para gerenciar as configurações do aplicativo, incluindo chaves de API, importação de biblioteca, enriquecimento de metadados, backup e restauração, autenticação com serviços externos e gerenciamento de cache.