Update: nueva version Horux Despachos

This commit is contained in:
consultoria-as
2026-04-27 22:09:36 -06:00
commit 6b36db1403
614 changed files with 125926 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import { create } from 'zustand';
import { persist } from 'zustand/middleware';
interface TenantViewState {
viewingTenantId: string | null;
viewingTenantName: string | null;
viewingTenantRfc: string | null;
setViewingTenant: (id: string | null, name: string | null, rfc?: string | null) => void;
clearViewingTenant: () => void;
}
export const useTenantViewStore = create<TenantViewState>()(
persist(
(set) => ({
viewingTenantId: null,
viewingTenantName: null,
viewingTenantRfc: null,
setViewingTenant: (id, name, rfc = null) => set({ viewingTenantId: id, viewingTenantName: name, viewingTenantRfc: rfc }),
clearViewingTenant: () => set({ viewingTenantId: null, viewingTenantName: null, viewingTenantRfc: null }),
}),
{
name: 'horux-tenant-view',
}
)
);