import { create } from 'zustand'
import { persist } from 'zustand/middleware'

// 'off' | 'second_confirm' | 'long_press'
const usePaymentSettingsStore = create(
  persist(
    (set) => ({
      paymentSafety: 'off',
      setPaymentSafety: (v) => set({ paymentSafety: v }),
    }),
    { name: 'payment-settings' }
  )
)

export default usePaymentSettingsStore
