import { redirect } from "next/navigation"; import { DetailBackLink } from "@/components/detail-back-link"; import { createContainer } from "@/modules/garden/server/actions"; export default function NewContainerPage() { async function handleCreate(formData: FormData) { "use server"; await createContainer({ name: formData.get("name") as string, type: (formData.get("type") as string) || "other", locationNotes: (formData.get("locationNotes") as string) || null, }); redirect("/garden"); } return (

New container