The import stats or null if not found.
export function getImportStats(): ImportStats | null {
try {
console.debug("[Storage] 🔍 Retrieving import stats...");
const stats = storage.getItem(STORAGE_KEYS.IMPORT_STATS);
if (stats) {
const parsed = JSON.parse(stats);
console.debug(
`[Storage] ✅ Retrieved import stats: ${parsed.total} total entries`,
);
return parsed;
}
console.debug("[Storage] 🔍 No import stats found");
return null;
} catch (error) {
console.error(
"[Storage] ❌ Error retrieving import stats from storage",
error,
);
return null;
}
}
Retrieves saved import statistics.