export const storage = {
  get(key: string): string | null {
    try {
      return uni.getStorageSync(key)
    } catch {
      return null
    }
  },

  set(key: string, value: string) {
    try {
      uni.setStorageSync(key, value)
    } catch (e) {
      console.error('Storage set error:', e)
    }
  },

  remove(key: string) {
    try {
      uni.removeStorageSync(key)
    } catch (e) {
      console.error('Storage remove error:', e)
    }
  },
}
