import { createOfflineQueue } from '@bytelyst/offline-queue';
import { mmkvStorage } from '../store/mmkv-storage';

export const noteOfflineQueue = createOfflineQueue({
  storageKey: 'bytelyst-notes-offline-queue',
  storage: {
    getItem: (key: string) => mmkvStorage.getItem(key),
    setItem: (key: string, value: string) => mmkvStorage.setItem(key, value),
  },
  maxRetries: 5,
  maxQueueSize: 50,
});
