Files
medreport_mrb2b/app/home/(user)/_components/booking/booking-container.tsx
2025-09-18 10:17:07 +03:00

26 lines
823 B
TypeScript

'use client';
import { ServiceCategory } from '../service-categories';
import BookingCalendar from './booking-calendar';
import { BookingProvider } from './booking.provider';
import LocationSelector from './location-selector';
import ServiceSelector from './service-selector';
import TimeSlots from './time-slots';
const BookingContainer = ({ category }: { category: ServiceCategory }) => {
return (
<BookingProvider category={category}>
<div className="xs:flex-row flex max-h-full flex-col gap-6">
<div className="flex flex-col">
<ServiceSelector products={category.products} />
<BookingCalendar />
<LocationSelector />
</div>
<TimeSlots countryCode={category.countryCode} />
</div>
</BookingProvider>
);
};
export default BookingContainer;