Files
baya-monorepo/client/src/components/booking/statusKind.ts
T
2026-07-10 03:22:29 +03:30

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',
};