Snapshot of in-progress work across local_backend, manager_dashboard, and waiter_pwa (pricing, chat, fiscal, prep zones, recovery codes, CRM, inventory, permissions), plus the nginx/docker-compose deploy fixes for the Unraid + NPM reverse-proxy setup. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
16 lines
362 B
JavaScript
16 lines
362 B
JavaScript
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
|