feat: add superadmin tenant module
This commit is contained in:
12
src/app/(modules)/tenants/queries/tenantKeys.ts
Normal file
12
src/app/(modules)/tenants/queries/tenantKeys.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { TenantListParams } from '@/types';
|
||||
|
||||
export const tenantKeys = {
|
||||
all: ['tenants'] as const,
|
||||
lists: () => [...tenantKeys.all, 'list'] as const,
|
||||
list: (params: TenantListParams) => [...tenantKeys.lists(), params] as const,
|
||||
};
|
||||
|
||||
export const tenantLookupKeys = {
|
||||
clients: ['tenant-lookup', 'clients'] as const,
|
||||
plans: ['tenant-lookup', 'plans'] as const,
|
||||
};
|
||||
Reference in New Issue
Block a user