* refactor components/navigation * refactor components/orders * refactor components/profile * refactor components/schedule * remove components/common/spinner
19 lines
498 B
TypeScript
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>
|
|
);
|
|
});
|