const definitionPermalink = require('../helpers/definitionPermalink');
const findDefinitionContentNextItems = require('../helpers/findDefinitionContentNextItems');
const makeListItem = (item) =>
`
${item.title}`;
module.exports = function definitionContentNextEntries(
title,
slug,
collection
) {
if (!title) throw new Error('E_NO_TITLE');
if (!slug) throw new Error('E_NO_SLUG');
if (!collection) throw new Error('E_NO_COLLECTION');
const entry = { title, slug };
const { next, previous } = findDefinitionContentNextItems(entry, collection);
return `
Browse
Previous words
Next words
`;
};