31 lines
824 B
TypeScript
31 lines
824 B
TypeScript
import { Sites } from "@/_config/sites";
|
|
import { api_groups } from "@/actions/rk2/api-groups";
|
|
import { api_anlage_getSelected } from "@/actions/rk/api-anlage";
|
|
import { GroupEdit } from "@/components/rk2/groups/groupEdit";
|
|
|
|
|
|
|
|
|
|
import Link from "next/link";
|
|
import Breadcrumbs from "@/components/ui/navigation/breadcrumbs";
|
|
|
|
|
|
export default async function PageGroups() {
|
|
const currentAnlage= await api_anlage_getSelected();
|
|
const groups = await api_groups();
|
|
|
|
const breadcrumb = [{ label: "RK", href: "/" },{ label: "Anlage", href: "/rk2" },{ label: "Groups", href: "/rk2/groups" }, { label: "New" }]
|
|
|
|
|
|
return (
|
|
<div className="">
|
|
<div>
|
|
<Breadcrumbs items={breadcrumb}/>
|
|
</div>
|
|
<div className="flex flex-col m-4 w-300 ">
|
|
<GroupEdit anlage={currentAnlage} groups={groups} />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|