2025-05-23 14:32:39 +03:00

19 lines
534 B
TypeScript

'use client';
import { SlotDate } from './components/slot-date';
import { SlotTime } from './components/slot-time';
import { type SlotComponentProps } from './types';
import { ScheduleStoreProvider } from '@/stores/schedule/schedule-store';
import { withContext } from '@/utils/context';
export const SlotDateTime = withContext(ScheduleStoreProvider)(function (
props: Readonly<SlotComponentProps>,
) {
return (
<div className="flex flex-col">
<SlotDate {...props} />
<SlotTime {...props} />
</div>
);
});