feat: implement booking feature with service and time slot selection

This commit is contained in:
Danel Kungla
2025-09-03 10:04:00 +03:00
parent a587b222b9
commit f7514c698e
11 changed files with 306 additions and 14 deletions

View File

@@ -0,0 +1,31 @@
'use client';
import React from 'react';
import { Calendar } from '@kit/ui/shadcn/calendar';
import { Card } from '@kit/ui/shadcn/card';
import { ServiceCategory } from '../service-categories';
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="flex flex-row gap-6">
<div className="flex flex-col">
<ServiceSelector products={category.products} />
<Card className="mb-4">
<Calendar />
</Card>
{/* <LocationSelector /> */}
</div>
<TimeSlots />
</div>
</BookingProvider>
);
};
export default BookingContainer;