<%- include('header', {links: links}); %>

<main>
<% if (page === "add") { %>
	<%- include('addForm', {type: type}); %>
<% } else if (page === "edit") { %>
	<%- include('editForm', {item: item, categories: categories, stores: stores}); %>
<% } else { %>
	<%- include('itemTable', {items: items}); %>
<% }; %>
</main>
<%- include('footer'); %>
