26 lines
823 B
TypeScript
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;
|