import Link from "next/link";
import { ContentHeader } from "@/components/layout/ContentHeader";
import { ZuweisungsFormular } from "@/components/hosts/ZuweisungsFormular";
import { Callout } from "@/components/ui/Callout";
import { Card } from "@/components/ui/Card";
import { prisma } from "@/lib/db";
import { hostsOhneKunde } from "@/server/queries/hosts";
export const metadata = { title: "Nicht zugeordnete Hosts" };
export default async function NichtZugeordnetSeite() {
const [hosts, kunden] = await Promise.all([
hostsOhneKunde(),
prisma.kunde.findMany({
orderBy: { name: "asc" },
select: {
id: true,
name: true,
standorte: { select: { id: true, name: true }, orderBy: { name: "asc" } },
},
}),
]);
return (
<>