39 lines
799 B
TypeScript
39 lines
799 B
TypeScript
"use client";
|
|
|
|
import {
|
|
NotdienstForm,
|
|
type NotdienstCalendarItem,
|
|
} from "./notdienst-form";
|
|
|
|
type NotdienstEntryProps = {
|
|
targetYear: number;
|
|
targetMonth: number;
|
|
isLocked: boolean;
|
|
requiredDaysTotal: number;
|
|
initialSelectedDates: string[];
|
|
childrenIds: string[];
|
|
calendarItems: NotdienstCalendarItem[];
|
|
};
|
|
|
|
export function NotdienstEntry({
|
|
targetYear,
|
|
targetMonth,
|
|
isLocked,
|
|
requiredDaysTotal,
|
|
initialSelectedDates,
|
|
childrenIds,
|
|
calendarItems,
|
|
}: NotdienstEntryProps) {
|
|
return (
|
|
<NotdienstForm
|
|
targetYear={targetYear}
|
|
targetMonth={targetMonth}
|
|
isLocked={isLocked}
|
|
requiredDaysTotal={requiredDaysTotal}
|
|
initialSelectedDates={initialSelectedDates}
|
|
childrenIds={childrenIds}
|
|
calendarItems={calendarItems}
|
|
/>
|
|
);
|
|
}
|