33 lines
1003 B
TypeScript
33 lines
1003 B
TypeScript
import { Sites } from "@/_config/sites";
|
|
import { api_units } from "@/actions/rk2/api-units";
|
|
|
|
import { api_anlage_getSelected } from "@/actions/rk/api-anlage";
|
|
|
|
|
|
import Link from "next/link";
|
|
import { List, ListItem, ListItemAction } from "@/components/ui/list";
|
|
import { Button } from "@/components/ui/button";
|
|
import Breadcrumbs from "@/components/ui/navigation/breadcrumbs";
|
|
import IoExcelImport from "@/components/rk2/ios/ioExcelImport";
|
|
|
|
|
|
|
|
export default async function PageImport() {
|
|
|
|
const currentAnlage = await api_anlage_getSelected();
|
|
const units = await api_units();
|
|
const breadcrumb = [{ label: "RK", href: "/" },{ label: `${Sites.rk2.signals.name}`, href:`${Sites.rk2.signals.url}` },{ label: `${Sites.rk2.signals.import.name}` },{ label: `${currentAnlage.anlageNr+" "+currentAnlage.name}` }]
|
|
|
|
return (
|
|
<>
|
|
{/* Main-Nav */}
|
|
<Breadcrumbs items={breadcrumb}/>
|
|
|
|
<div className="flex flex-col m-4 ">
|
|
<IoExcelImport anlageId={currentAnlage.id} />
|
|
|
|
</div>
|
|
</>
|
|
);
|
|
}
|