
// simple offline queue placeholder (uses localStorage)
export function enqueue(req){
  const q = JSON.parse(localStorage.getItem('offline_q') || '[]');
  q.push(req);
  localStorage.setItem('offline_q', JSON.stringify(q));
}
export function drain(){ const q = JSON.parse(localStorage.getItem('offline_q') || '[]'); localStorage.removeItem('offline_q'); return q; }
