2025-05-23 17:24:54 +03:00

19 lines
498 B
TypeScript

'use client';
import { type SlotComponentProps } from '../types';
import { SlotDate } from './slot-date';
import { SlotTime } from './slot-time';
import { ScheduleStoreProvider } from '@/stores/schedule';
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>
);
});