const renderNode = (node, depth, renderAst) => {
  const {
    type, key, value, newValue, children,
  } = node;
  return actions[type](depth, key, value, newValue, children, renderAst);