"use client"; import { useState } from "react"; import Link from "next/link"; import { useRouter } from "next/navigation"; import { ContainerForm } from "./container-form"; import type { ContainerDto } from "../server/queries"; type Props = { containers: ContainerDto[] }; export function ContainerList({ containers }: Props) { const [showNew, setShowNew] = useState(false); const router = useRouter(); return (
No containers yet. Add one to start organising your plants.
)}{c.plantCount} {c.plantCount === 1 ? "plant" : "plants"}
))}