"use client"; import { useState } from "react"; import Link from "next/link"; import { useRouter } from "next/navigation"; import { Container } from "lucide-react"; import { Empty, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, } from "@/components/ui/empty"; 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 (
{c.plantCount} {c.plantCount === 1 ? "plant" : "plants"}
))}