continued the kita-planer

This commit is contained in:
t.indorf
2026-05-08 14:32:14 +02:00
parent b686e714ff
commit 7aff691803
85 changed files with 9434 additions and 588 deletions
@@ -1,7 +1,6 @@
"use client";
import { useState, useTransition } from "react";
import { MitbringselItem } from "@prisma/client";
import { Trash2, Plus, Utensils } from "lucide-react";
import { toast } from "sonner";
@@ -9,7 +8,10 @@ import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { addMitbringsel, deleteMitbringsel } from "../actions";
type ItemWithUser = MitbringselItem & {
type MitbringselItemDto = {
id: string;
userId: string;
content: string;
user: { firstName: string; lastName: string };
};
@@ -20,7 +22,7 @@ export function MitbringselList({
isAdmin,
}: {
terminId: string;
items: ItemWithUser[];
items: MitbringselItemDto[];
currentUserId: string;
isAdmin: boolean;
}) {