export function canAutoPruneMissingUnit(item) {
  return Boolean(
    item?.db?.present &&
    item?.issues?.some((issue) => issue.code === "missing_unit") &&
    item?.workspace &&
    item.workspace.exists === false &&
    Array.isArray(item.containers) &&
    item.containers.length === 0,
  );
}
