- add listContainers/getContainer/searchContainers queries - add createContainer/updateContainer/deleteContainer server actions with logActivity - add ContainerList, ContainerDetail, ContainerForm client components - add /garden, /garden/containers/[id], /garden/containers/new pages - register garden.container entity with share + search in manifest - add sprout icon to NavIcon registry - add garden e2e test spec
15 lines
501 B
TypeScript
15 lines
501 B
TypeScript
import { notFound } from "next/navigation";
|
|
import { getContainer } from "@/modules/garden/server/queries";
|
|
import { ContainerDetail } from "@/modules/garden/components/container-detail";
|
|
|
|
export default async function ContainerPage({ params }: { params: Promise<{ id: string }> }) {
|
|
const { id } = await params;
|
|
const container = await getContainer(id);
|
|
if (!container) notFound();
|
|
return (
|
|
<div className="page-content">
|
|
<ContainerDetail container={container} />
|
|
</div>
|
|
);
|
|
}
|