import { Modal } from '@/components/ui/Modal' import { Button } from '@/components/ui/Button' import { useClearObject } from '@/lib/objects' /** Confirm clearing every active plop from a focused bed (soft-remove — the rows * are kept with removed_at, so history survives). */ export function ClearBedModal({ objectName, plops, gardenId, onClose, }: { objectName: string plops: { id: number; version: number }[] gardenId: number onClose: () => void }) { const clear = useClearObject(gardenId) const n = plops.length return (

Remove all {n} {n === 1 ? 'plant' : 'plants'} from{' '} {objectName}? They're marked removed but kept in history.

) }