23 lines
804 B
TypeScript
23 lines
804 B
TypeScript
import type { StatusKind } from '@/components/StatusChip';
|
|
import type { BookingSessionStatus, BookingStatus } from '@/services/bookings/types';
|
|
|
|
/** Booking status → the shared semantic StatusChip kind (used by the timeline + the bookings list). */
|
|
export const BOOKING_STATUS_KIND: Record<BookingStatus, StatusKind> = {
|
|
pending_payment: 'pending',
|
|
confirmed: 'info',
|
|
in_progress: 'active',
|
|
completed: 'verified',
|
|
disputed: 'rejected',
|
|
closed: 'neutral',
|
|
cancelled: 'neutral',
|
|
};
|
|
|
|
/** Session status → the shared semantic StatusChip kind (used by the session card + the today feed). */
|
|
export const SESSION_STATUS_KIND: Record<BookingSessionStatus, StatusKind> = {
|
|
scheduled: 'info',
|
|
in_progress: 'active',
|
|
completed: 'verified',
|
|
missed: 'rejected',
|
|
cancelled: 'neutral',
|
|
};
|