"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.removeFirstListItem = void 0;
var _queries = require("../queries");
var _moveListItemUp = require("./move-list-item-up");
const removeFirstListItem = (editor, _ref) => {
  let {
    list,
    listItem
  } = _ref;
  const [, listPath] = list;
  if (!(0, _queries.isListNested)(editor, listPath)) {
    (0, _moveListItemUp.movedListItemUp)(editor, {
      list,
      listItem
    });
    return true;
  }
  return false;
};
exports.removeFirstListItem = removeFirstListItem;