diff options
| author | Alberto Duarte Delgado <alberto@albertoduarte.com> | 2026-04-21 12:22:35 +0100 |
|---|---|---|
| committer | Alberto Duarte Delgado <alberto@albertoduarte.com> | 2026-04-21 12:22:35 +0100 |
| commit | c685ee8dd304b53c54b3661c2dc96f470af25737 (patch) | |
| tree | 914e00f27263292a9d611d4c3ac08828d2151a16 /src/shared/lib | |
| parent | be90a5f202f80bb423c6e0aaf1c4d5feca668f01 (diff) | |
feat(offices): restaurar filtro de favoritos fixes #14
Diffstat (limited to 'src/shared/lib')
| -rw-r--r-- | src/shared/lib/mockData.ts | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/shared/lib/mockData.ts b/src/shared/lib/mockData.ts new file mode 100644 index 0000000..9ece33c --- /dev/null +++ b/src/shared/lib/mockData.ts @@ -0,0 +1,30 @@ +import { UserProfile } from '@/features/profile/types'; +import { Reservation } from '@/features/reservations/types'; + +type MockReservationLock = { + reservationId: string; + userId: string; + officeId: string; + date: string; + time: string; +}; + +export function mockDelay(durationMs = 250): Promise<void> { + return new Promise((resolve) => { + setTimeout(resolve, durationMs); + }); +} + +export const mockUserProfile: UserProfile = { + uid: 'mock-user', + email: 'mock@appoficina.local', + displayName: 'Usuario Demo', + photoURL: '', + phone: '', + company: '', + bio: '', +}; + +export const mockReservations: Reservation[] = []; + +export const mockReservationLocks: Record<string, MockReservationLock> = {}; |