import React from 'react';
import DynamicLink from './DynamicLink.jsx';
import './SideBar.scss';
const ContextualLinks = ({ links }) => (
{
links.map((item) => {
if (item.type === 'link') {
return (
);
}
if (item.type === 'subtitle') {
return (
{item.name}
);
}
return (
{item.name}
);
})
}
);
export default ContextualLinks;