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({ objectId, objectName, plopCount, gardenId, onClose, }: { objectId: number objectName: string plopCount: number gardenId: number onClose: () => void }) { const clear = useClearObject(gardenId) return (

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

) }