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>
12 lines
400 B
JavaScript
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
|