const React = require('react') const text = ['↑', '↓'] const linkText = ['Предыдущая страница', 'Следующая страница'] const i = type => type === 'top' ? 0 : 1 const Icon = ({children}) => ( {children} ) const Paginator = ({url, type}) => (
{text[i(type)]} {linkText[i(type)]}
) module.exports = Paginator