Files
xenia-pos-local/manager_dashboard/src/store/phoneStore.js
bonamin 34ae328b0d feat: bump client-services (accumulated feature work + deploy fixes)
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>
2026-07-19 10:00:14 +03:00

12 lines
400 B
JavaScript

import { create } from 'zustand'
const usePhoneStore = create((set) => ({
activeCall: null, // { caller, ext, at, customer, orders } | null
log: [], // last 20 calls
setActiveCall: (call) => set({ activeCall: call }),
dismissCall: () => set({ activeCall: null }),
addCallToLog: (entry) => set(s => ({ log: [entry, ...s.log].slice(0, 20) })),
}))
export default usePhoneStore