// Web-only casual storage service (localStorage)

export const StorageServiceCasual = {
  async setItem(key: string, value: string): Promise<void> {
    try {
      localStorage.setItem(key, value)
    } catch (e) {
      console.error('StorageServiceCasual setItem error:', e)
    }
  },

  async getItem(key: string): Promise<string | null> {
    try {
      return localStorage.getItem(key)
    } catch (e) {
      console.error('StorageServiceCasual getItem error:', e)
      return null
    }
  },

  async removeItem(key: string): Promise<void> {
    try {
      localStorage.removeItem(key)
    } catch (e) {
      console.error('StorageServiceCasual removeItem error:', e)
    }
  },
}
